cee::LogManager
-
class
LogManager
: public RefCountedObject Class for managing log messages.
The log manager receives errors, warnings, info and debug log messages and communicate these to the chosen log destination (file or console).
For more information, see the Logging topic.
Public Functions
-
void
setLevel
(const Str &loggerName, int logLevel) Sets the logging level of the named logger and all its descendants.
Log levels are 1=error, 2=warning, 3=info and 4=debug. A log level of 0 disables all logging.
-
void
setDestination
(LogDestination *logDestination) Sets log destination for all loggers.
-
void
logError
(const Str &loggerName, const Str &errorMessage) Adds an error (level 1) log entry to the logger with the given name.
-
void
logError
(const Str &loggerName, const Str &errorMessage, const CodeLocation &location) Adds an error (level 1) log entry to the logger with the given name.
-
void
logWarning
(const Str &loggerName, const Str &warningMessage) Adds a warning (level 2) log entry to the logger with the given name.
-
void
logWarning
(const Str &loggerName, const Str &warningMessage, const CodeLocation &location) Adds a warning (level 2) log entry to the logger with the given name.
-
void
logInfo
(const Str &loggerName, const Str &infoMessage) Adds an info log (level 3) entry to the logger with the given name.
-
void
logInfo
(const Str &loggerName, const Str &infoMessage, const CodeLocation &location) Adds an info log (level 3) entry to the logger with the given name.
-
void
logDebug
(const Str &loggerName, const Str &debugMessage) Adds a debug (level 4) log entry to the logger with the given name.
-
void
logDebug
(const Str &loggerName, const Str &debugMessage, const CodeLocation &location) Adds a debug (level 4) log entry to the logger with the given name.
-
void