Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Trim Event Log Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: July 24 2008 at 09:58 | IP Logged Quote GadgetGuy

I just noticed in the PH User Manual, a suggestion to auto-trim the event log to keep it from growing too large!

I created a timed event trigger with a formula of...
ph_trimeventlog("2")

But when I check the formula it evaluates to "!" not "1".

I assume this means I have not used a correct formula syntax, but I'm stumped then. What would be correct?

Also BTW where is the log file saved? I can't seem to even find one in all the normal places!

Thanks.

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
ficklma1
Groupie
Groupie


Joined: December 08 2007
Location: United States
Online Status: Offline
Posts: 59
Posted: July 24 2008 at 10:48 | IP Logged Quote ficklma1

Hi GadgetGuy,

I think you just need to remove the quotes.

i.e. ph_trimeventlog(2)



Edited by ficklma1 - July 24 2008 at 10:49
Back to Top View ficklma1's Profile Search for other posts by ficklma1
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: July 24 2008 at 12:07 | IP Logged Quote GadgetGuy

That was how I initially entered the parameter, but that formula evaluated to "0" which I thought indicated a bad syntax.

I thought correct formulas evaluate to "1" when "verified," but I'm now guessing that is not the case.

Any educational comments, anyone?

Thanks

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 24 2008 at 13:24 | IP Logged Quote TonyNo

A good result is usually 0.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: July 24 2008 at 14:47 | IP Logged Quote GadgetGuy

TonyNo wrote:
A good result is usually 0.


Then Tony what does a "1" indicate (if anything) or is the "desired result" dependent on the formula?



__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 24 2008 at 19:58 | IP Logged Quote TonyNo

Yup. The result code varies by function. Check the Help for more. The docs for this say...

Quote:
Returns a 0 if successful and a 1 if an error occurs


Quote:
Also BTW where is the log file saved?

In the database. If you want to export it, you can do that when you are looking at it in PH.

Edited by TonyNo - July 24 2008 at 20:05
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum