#include <conscience_log.h>
◆ getInstance()
◆ getLogLinePrefix()
| const string conscience_utils::logging::CscLoggingConfiguration::getLogLinePrefix |
( |
| ) |
|
Returns prefix which will be added to every log line unless specified (see log without prefix)
◆ getMainFileName()
| const string conscience_utils::logging::CscLoggingConfiguration::getMainFileName |
( |
| ) |
|
Returns configured main log file name. Corresponds to value passed to setMainFileName(string) or CSC_LOG_MAIN_FILENAME precompiled variable
◆ setGlobalLoggerLevel()
| void conscience_utils::logging::CscLoggingConfiguration::setGlobalLoggerLevel |
( |
LogLevel |
level | ) |
|
Set level of global logger (LOG_XXX)
◆ setLevelAll()
| void conscience_utils::logging::CscLoggingConfiguration::setLevelAll |
( |
LogLevel |
level | ) |
|
Forces level of all loggers to given one
◆ setMainFileName()
| void conscience_utils::logging::CscLoggingConfiguration::setMainFileName |
( |
string |
fileName | ) |
|
Call this method to configure main log file name. This should be called before first log instruction otherwise will raise an exception.
◆ levelsByName
| const map<string, LogLevel> conscience_utils::logging::CscLoggingConfiguration::levelsByName |
|
inlinestatic |
Initial value:= {
{"TRACE", LogLevel_TRACE},
{"DEBUG", LogLevel_DEBUG},
{"INFO", LogLevel_INFO},
{"WARN", LogLevel_WARN},
{"ERROR", LogLevel_ERROR},
}
The documentation for this class was generated from the following files: