Perform logging.
More...
#include <utils.h>
|
| | Log (Severity severity=Severity::EMPTY, bool isDebug=false, int lineWidth=0, int indentWidth=0) |
| | Constructor for the Logger. More...
|
| |
|
| ~Log () |
| | Displays output and destroys object.
|
| |
|
template<class T > |
| Log & | operator<< (const T &input) |
| |
|
| static void | setVerbosity (int verb) |
| | Sets the verbosity level for logging. (0 - EMPTY, 1 - ERROR, 2 - WARNING, 3 - INFO). All messages of levels in and below the current verbosity level are displayed in the output. More...
|
| |
Perform logging.
Definition at line 137 of file utils.h.
◆ Log()
| Utils::Log::Log |
( |
Severity |
severity = Severity::EMPTY, |
|
|
bool |
isDebug = false, |
|
|
int |
lineWidth = 0, |
|
|
int |
indentWidth = 0 |
|
) |
| |
Constructor for the Logger.
- Parameters
-
| [in] | severity | The severity level to log with |
| [in] | isDebug | Indicates if in debug mode |
| [in] | lineWidth | The width to fix per line, 0 for no limit |
| [in] | indentWidth | The width by which output is to be indented |
Definition at line 100 of file utils.cpp.
◆ setVerbosity()
| void Utils::Log::setVerbosity |
( |
int |
verb | ) |
|
|
static |
Sets the verbosity level for logging. (0 - EMPTY, 1 - ERROR, 2 - WARNING, 3 - INFO). All messages of levels in and below the current verbosity level are displayed in the output.
- Parameters
-
| [in] | verb | The verbosity level |
Definition at line 258 of file utils.cpp.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/timetabler/checkouts/latest/include/utils.h
- /home/docs/checkouts/readthedocs.org/user_builds/timetabler/checkouts/latest/src/utils.cpp