9#include <framework/logging/LogConfig.h>
10#include <framework/logging/Logger.h>
19 m_debugLevel(debugLevel),
33 "Error messages cannot be switched off. The log level is set to ERROR instead of FATAL.",
34 PACKAGENAME(), FUNCTIONNAME(), __FILE__, __LINE__, 0));
44 static const char* logLevelString[] = {
"DEBUG",
"INFO",
"RESULT",
"WARNING",
"ERROR",
"FATAL",
"default"};
45 return logLevelString[logLevelType];
51 static const char* logRealmString[] = {
"none",
"online",
"production"};
52 return logRealmString[realm];
LogConfig(ELogLevel logLevel=c_Default, int debugLevel=c_DefaultDebugLevel)
The LogConfig constructor.
ELogLevel m_logLevel
The log messaging level.
static const char * logRealmToString(ELogRealm realm)
Converts a log realm type to a string.
ELogLevel
Definition of the supported log levels.
@ c_Error
Error: for things that went wrong and have to be fixed.
@ c_Debug
Debug: for code development.
@ c_Fatal
Fatal: for situations were the program execution can not be continued.
@ c_Warning
Warning: for potential problems that the user should pay attention to.
ELogRealm
Definition of the supported execution realms.
void setLogLevel(ELogLevel logLevel)
Configure the log level.
static const char * logLevelToString(ELogLevel logLevelType)
Converts a log level type to a string.
bool sendMessage(LogMessage &&message)
Sends a log message using the log connection object.
static LogSystem & Instance()
Static method to get a reference to the LogSystem instance.
static void enableDebug()
Enable debug output.
Abstract base class for different kinds of events.