|
blocxx
|
This logger just discards all log messages. More...
#include <NullLogger.hpp>
Public Member Functions | |
| NullLogger () | |
Public Member Functions inherited from BLOCXX_NAMESPACE::Logger | |
| Logger (const String &defaultComponent=STR_DEFAULT_COMPONENT, const LogAppenderRef &appender=LogAppenderRef()) | |
| Logger (const String &defaultComponent, const ELogLevel logLevel) | |
| Logger (const Logger &) | |
| Logger & | operator= (const Logger &) |
| void | swap (Logger &x) |
| virtual | ~Logger () |
| virtual LoggerRef | clone () const BLOCXX_DEPRECATED |
| void | logFatalError (const String &message, const char *filename=0, int fileline=-1, const char *methodname=0) const |
| Log message with a fatal error category and the default component. | |
| void | logError (const String &message, const char *filename=0, int fileline=-1, const char *methodname=0) const |
| If getLogLevel() >= E_ERROR_LEVEL, Log message with an error category and the default component. | |
| void | logWarning (const String &message, const char *filename=0, int fileline=-1, const char *methodname=0) const |
| If getLogLevel() >= E_WARNING_LEVEL, Log info. | |
| void | logInfo (const String &message, const char *filename=0, int fileline=-1, const char *methodname=0) const |
| If getLogLevel() >= E_INFO_LEVEL, Log info. | |
| void | logDebug (const String &message, const char *filename=0, int fileline=-1, const char *methodname=0) const |
| If getLogLevel() >= E_DEBUG_LEVEL, Log debug info. | |
| void | logDebug2 (const String &message, const char *filename=0, int fileline=-1, const char *methodname=0) const |
| If getLogLevel() >= E_DEBUG2_LEVEL, Log debug info. | |
| void | logDebug3 (const String &message, const char *filename=0, int fileline=-1, const char *methodname=0) const |
| If getLogLevel() >= E_DEBUG3_LEVEL, Log debug info. | |
| void | logMessage (const String &component, const String &category, const String &message) const |
| Log a message using the specified component and category The current log level is ignored. | |
| void | logMessage (const String &component, const String &category, const String &message, const char *filename, int fileline, const char *methodname) const |
| Log a message using the specified component and category The current log level is ignored. | |
| void | logMessage (const String &category, const String &message) const |
| Log a message using the default component and specified category. | |
| void | logMessage (const String &category, const String &message, const char *filename, int fileline, const char *methodname) const |
| Log a message using the default component and specified category. | |
| void | logMessage (const LogMessage &message) const |
| Log a message. | |
| void | setDefaultComponent (const String &component) |
| Sets the default component. | |
| String | getDefaultComponent () const |
| Gets the default component. | |
| ELogLevel | getLogLevel () const |
| void | setLogLevel (ELogLevel logLevel) |
| Set the log level. | |
| void | setLogLevel (const String &logLevel) |
| Set the log level. | |
| bool | categoryIsEnabled (const String &category) const |
| Determine if the log category is enabled. | |
| bool | levelIsEnabled (const ELogLevel level) const |
| Check if the logger is enabled for given level. | |
| bool | componentAndCategoryAreEnabled (const String &component, const String &category) const |
| Determine if the component and category are both enabled. | |
This logger just discards all log messages.
Definition at line 49 of file NullLogger.hpp.
| BLOCXX_NAMESPACE::NullLogger::NullLogger | ( | ) |
Definition at line 48 of file NullLogger.cpp.