class Logger |
Logger.
![]() | ~Logger () Destroys this object |
![]() | hasBeenInitialized () Returns true if init has been called. |
![]() | init (const string& id, string& message) Returns a Logger given an identity string specified by id. |
![]() | init (const string& id, const Properties& props, string& message) |
![]() | write (int level, const string& key, const string& message) Writes this log to the destination provided that level is less than or equal to the logging level specified in the config file. |
![]() | setLevel (int level) Sets the logging level for this Logger to level. |
![]() | flush () |
![]() | doWrite (int, const string&, const string&, const string&) |
![]() | doSetLevel (int) |
![]() | doFlush () |
Logger.
We support 4 logging destinations server, file, stderr, stdout. The destination parameters are loaded from the system properties. The default is stderr.
Note NULL is returned if we are unable to open logs destination.
Note: No logs will be writen if a successful call to init(...) has not been made.
Alphabetic index HTML hierarchy of classes or Java