Logging, messages and error reporting.
The log levels are defined in LOG.Leve.
ENUM |
Level @public |
BITS |
Flags @public | Optional flags for the message methods.
|
|
ARG.Bool |
debugFlag
@public
|
ARG.Bool |
verboseFlag
@public
|
dict<LOG.Level, int> |
counts
@public
|
int |
errorCount
@public
|
|
|
isDebug()
bool @public | Return TRUE if the debug flag is on.
|
|
isVerbose()
bool @public | Return TRUE if the verbose flag is on.
|
|
getFlags()
string @public | Return the flags used by LOG. Useful to pass on to another program.
|
|
debug(msg, pos, flags) @public | Log a debug message, only output with "-d".
|
|
verbose(msg, pos, flags) @public | Log a message about detailed info, only output with "-vv".
|
|
info(msg, pos, flags) @public | Log an information message, only output with "-v".
|
|
report(msg, pos, flags) @public | Log a message about normal operation.
|
|
warning(msg, pos, flags) @public | Log a warning message.
|
|
error(msg, pos, flags) @public | Log an error message.
|
|
internal(msg, pos, flags) @public | Log an internal error message.
|
|
severe(msg, pos, flags) @public | Log a severe error message.
|
|
fatal(msg, pos, flags) @public | Log a fatal error message, the program will exit.
|
|
setExtraLead(lead)
string @public | Set a leader to be inserted before every message.
|
|
isInfoLog()
bool @public | Return TRUE if LOG.info() produces output.
|
|
isVerboseLog()
bool @public | Return TRUE if LOG.verbose() produces output.
|
|
isDebugLog()
bool @public | Return TRUE if LOG.debug() produces output.
|
|
log(level, msg, pos, flags) @public | Log a message at level.
|
|
reportStack(out) @public | Report the current stack backtrace, if possible.
|
|
flush() @public | Flush any output streams for messages.
|
|
getFlushInterval()
int @public | Get the current flush interval.
|
|
setFlushInterval(interval) @public | Set the flush interval.
|
|
writeToFile(name, truncate)
status @public |
|
getUseTimeStamp()
bool @public |
|
setUseTimeStamp(on) @public |
|