|
logger
|
Interfaces for logging and logger management. More...
Go to the source code of this file.
Namespaces | |
| logger | |
| Logger namespace. Contains all available functions and classes. | |
Functions | |
| bool | logger::enabled () |
| Checks if the logger is enabled. More... | |
| Level | logger::consoleLevel () |
| Gets the minimum Level for console output. More... | |
| Level | logger::fileLevel () |
| Gets the minimum Level for file output. More... | |
| std::string | logger::logFile () |
| Gets the output file for file logging. More... | |
| void | logger::enable (const Level &consoleLevel=Info, const Level &fileLevel=Off, const std::string &logFileFormat="log/%Y-%m-%d-%H-%M-%S.txt") |
| Enables the logger with the given minimum Levels. Call again to change these settings. This results in a new log file being generated, if file logging is enabled. More... | |
| void | logger::disable () |
| Disables the logger. | |
| int | logger::contextLength () |
| Gets the context lenght. More... | |
| void | logger::setContextLength (const int &contextLength) |
| Sets the context lenght. More... | |
| bool | logger::printTime () |
| Checks whether the current time is included in output. More... | |
| void | logger::setPrintTime (const bool &printTime) |
| Sets whether the current time should be included in output. More... | |
| std::string | logger::timeFormat () |
| Gets the format used printing the time. More... | |
| void | logger::setTimeFormat (const std::string &timeFormat) |
| Sets the format used printing the time. More... | |
| Line | logger::verbose (const std::string &context="") |
| Creates a new Line object with the Level Verbose. Once this object is destroyed, the content will be sent to the outputs. When logging to console, messages with this level will be sent to cout. More... | |
| Line | logger::debug (const std::string &context="") |
| Creates a new Line object with the Level Debug. Once this object is destroyed, the content will be sent to the outputs. When logging to console, messages with this level will be sent to cout. More... | |
| Line | logger::info (const std::string &context="") |
| Creates a new Line object with the Level Info. Once this object is destroyed, the content will be sent to the outputs. When logging to console, messages with this level will be sent to cout. More... | |
| Line | logger::warning (const std::string &context="") |
| Creates a new Line object with the Level Info. Once this object is destroyed, the content will be sent to the outputs. When logging to console, messages with this level will be sent to cerr. More... | |
| Line | logger::error (const std::string &context="") |
| Creates a new Line object with the Level Error. Once this object is destroyed, the content will be sent to the outputs. When logging to console, messages with this level will be sent to cerr. More... | |
Interfaces for logging and logger management.
This header contains the main interfaces used for enabling/disabling/configuring the logger and for logging content.
1.8.14