Defines a multi level static logger.
More...
#include <logger.h>
Defines a multi level static logger.
Definition at line 19 of file logger.h.
◆ destroy()
void Brush::Util::Logger::destroy |
( |
| ) |
|
|
static |
Destroys the logger instance.
Definition at line 23 of file logger.cpp.
◆ get_log_level()
int Brush::Util::Logger::get_log_level |
( |
| ) |
|
Gets the current log level.
- Returns
- The current log level.
Definition at line 44 of file logger.cpp.
◆ initLogger()
Logger * Brush::Util::Logger::initLogger |
( |
| ) |
|
|
static |
Initializes the logger instance.
- Returns
- A pointer to the logger instance.
Definition at line 13 of file logger.cpp.
◆ log()
string Brush::Util::Logger::log |
( |
string | m, |
|
|
int | v, |
|
|
string | sep = "\n" ) const |
Prints a log message with verbosity control.
print message with verbosity control.
- Parameters
-
m | The log message to be printed. |
v | The verbosity level of the log message. |
sep | The separator to be used between log messages. |
- Returns
- The formatted log message.
Definition at line 50 of file logger.cpp.
◆ set_log_level()
void Brush::Util::Logger::set_log_level |
( |
int & | verbosity | ) |
|
Sets the log level.
- Parameters
-
verbosity | The log level to be set. |
Definition at line 31 of file logger.cpp.
◆ instance
The singleton instance of the logger.
Definition at line 57 of file logger.h.
◆ verbosity
int Brush::Util::Logger::verbosity |
|
private |
The current log level.
Definition at line 56 of file logger.h.
The documentation for this class was generated from the following files: