 |
Belle II Software
release-05-01-25
|
11 #include <framework/logging/LogConfig.h>
12 #include <framework/logging/Logger.h>
21 m_debugLevel(debugLevel),
35 "Error messages cannot be switched off. The log level is set to ERROR instead of FATAL.",
36 PACKAGENAME(), FUNCTIONNAME(), __FILE__, __LINE__, 0));
46 static const char* logLevelString[] = {
"DEBUG",
"INFO",
"RESULT",
"WARNING",
"ERROR",
"FATAL",
"default"};
47 return logLevelString[logLevelType];
static void enableDebug()
Enable debug output.
@ c_Fatal
Fatal: for situations were the program execution can not be continued.
static const char * logLevelToString(ELogLevel logLevelType)
Converts a log level type to a string.
void setLogLevel(ELogLevel logLevel)
Configure the log level.
bool sendMessage(LogMessage &&message)
Sends a log message using the log connection object.
ELogLevel m_logLevel
The log messaging level.
ELogLevel
Definition of the supported log levels.
Abstract base class for different kinds of events.
@ c_Error
Error: for things that went wrong and have to be fixed.
static LogSystem & Instance()
Static method to get a reference to the LogSystem instance.
@ c_Debug
Debug: for code development.
@ c_Warning
Warning: for potential problems that the user should pay attention to.