Qore Logger Module Reference 0.4
|
Implements the root class for loggers; does not allow a parent logger to be set. More...
#include <Logger.qm.dox.h>
Public Member Methods | |
constructor (int level) | |
constructor (LoggerLevel level=LoggerLevel::getLevelAll()) | |
constructor (string level) | |
setLevel (*LoggerLevel value) | |
Overrides the level setter to prevent setting the root logger's level to NOTHING (an exception is thrown in this case). More... | |
setParent (*Logger value) | |
Overrides value setter as the root logger cannot have a parent; this method always throws an exception if the argument is a value. More... | |
Public Member Methods inherited from Logger::Logger | |
addAppender (LoggerAppender appender) | |
Adds an appender to the appender list. More... | |
callAppenders (LoggerEvent event) | |
Forwards the given logging event to all linked appenders. More... | |
constructor (LoggerLevel level) | |
Creates the object with an empty name and the given initial level. More... | |
constructor (string name, LoggerLevel level) | |
Creates the object. More... | |
constructor (string name='') | |
Creates the object. More... | |
*LoggerLevel | decLevel () |
Decrement logger level. More... | |
bool | getAdditivity () |
Returns the additivity flag. | |
list< LoggerAppender > | getAppenders () |
Returns the appender list. More... | |
*LoggerLevel | getLevel (bool effective=True) |
Returns the logging level. More... | |
string | getName () |
Returns the logger name. | |
*Logger | getParent () |
Returns the parent logger, if any. | |
*LoggerLevel | incLevel () |
Increment logger level. More... | |
removeAllAppenders () | |
Clears the appender list by removing all appenders. | |
removeAppender (LoggerAppender appender) | |
Removes the appender from the list. More... | |
setAdditivity (bool enable) | |
Sets the additivity flag; when additivity is active, events are passed to parent loggers. More... | |
setLevel (*LoggerLevel level) | |
Sets the logging level. More... | |
setLevel (int level) | |
Sets the logging level. More... | |
setLevel (string level) | |
Sets the logging level. More... | |
setParent (*Logger value) | |
Sets the parent logger. More... | |
Additional Inherited Members | |
Private Member Methods inherited from Logger::Logger | |
hash< CallStackInfo > | getLocation () |
Returns the call location where the log function was called from. | |
Implements the root class for loggers; does not allow a parent logger to be set.
Logger::LoggerRoot::constructor | ( | int | level | ) |
level | initial log level |
Logger::LoggerRoot::constructor | ( | LoggerLevel | level = LoggerLevel::getLevelAll() | ) |
level | initial log level |
Logger::LoggerRoot::constructor | ( | string | level | ) |
level | initial log level |
Logger::LoggerRoot::setLevel | ( | *LoggerLevel | value | ) |
Logger::LoggerRoot::setParent | ( | *Logger | value | ) |
Overrides value setter as the root logger cannot have a parent; this method always throws an exception if the argument is a value.
LOGGER-ERROR | if parent exists |