Logging and debug levels?
Posted: Wed Aug 05, 2009 7:00 pm
I want to add some functionality to get more infos if users encounter some problems.
What is the EG way to do this?
After a quick look at the code I found the eg.LogIt function but what is the '@' before the call.
What is the difference between the debug and the debug2 command line parameter?
I found the easy code fragement
On other occasions I found the PrintDebugNotice function which seems to be defined depending on the debugLevel.
I guess there are no different debug levels (INFO, DEBUG, WARN, ERROR, FATAL) as I know them from log4j?
little confused.
What is the EG way to do this?
After a quick look at the code I found the eg.LogIt function but what is the '@' before the call.
What is the difference between the debug and the debug2 command line parameter?
I found the easy code fragement
Code: Select all
if eg.debugLevel:
print "xyz"
I guess there are no different debug levels (INFO, DEBUG, WARN, ERROR, FATAL) as I know them from log4j?
little confused.