Logger.
More...
#include <log.h>
Logger.
Definition at line 102 of file log.h.
◆ get_level()
LogLevel roc::core::Logger::get_level |
( |
| ) |
const |
|
inline |
Get current maximum log level.
Definition at line 119 of file log.h.
◆ instance()
Logger & roc::core::Logger::instance |
( |
| ) |
|
|
inlinestatic |
Get logger instance.
Definition at line 105 of file log.h.
◆ set_colors()
Set colors mode.
- Note
- Other threads will see the change immediately.
◆ set_handler()
void roc::core::Logger::set_handler |
( |
LogHandler | handler, |
|
|
void ** | args, |
|
|
size_t | n_args ) |
Set log handler.
- Note
- Other threads will see the change immediately.
◆ set_level()
void roc::core::Logger::set_level |
( |
LogLevel | | ) |
|
Set maximum log level.
- Note
- Other threads are not guaranteed to see the change immediately.
◆ set_verbosity()
void roc::core::Logger::set_verbosity |
( |
unsigned | | ) |
|
◆ writef()
void roc::core::Logger::writef |
( |
LogLevel | level, |
|
|
const char * | module, |
|
|
const char * | file, |
|
|
int | line, |
|
|
const char * | format, |
|
|
| ... ) |
◆ Singleton< Logger >
The documentation for this class was generated from the following file: