Facility to log what you are doing.
More...
#include <thorin/util/log.h>
Facility to log what you are doing.
- See also
- Formatted Output, Logging Macros
Definition at line 14 of file log.h.
◆ Level
Enumerator |
---|
Error | |
Warn | |
Info | |
Verbose | |
Debug | |
Definition at line 19 of file log.h.
◆ Log()
thorin::Log::Log |
( |
const Flags & |
flags | ) |
|
|
inline |
Definition at line 16 of file log.h.
◆ flags()
const Flags & thorin::Log::flags |
( |
| ) |
const |
|
inline |
◆ level()
Level thorin::Log::level |
( |
| ) |
const |
|
inline |
◆ level2acro()
std::string_view thorin::Log::level2acro |
( |
Level |
level | ) |
|
|
static |
◆ level2color()
rang::fg thorin::Log::level2color |
( |
Level |
level | ) |
|
|
static |
◆ log() [1/2]
template<class... Args>
void thorin::Log::log |
( |
Level |
level, |
|
|
const char * |
file, |
|
|
uint16_t |
line, |
|
|
const char * |
fmt, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ log() [2/2]
template<class... Args>
void thorin::Log::log |
( |
Level |
level, |
|
|
Loc |
loc, |
|
|
const char * |
fmt, |
|
|
Args &&... |
args |
|
) |
| const |
|
inline |
◆ operator bool()
thorin::Log::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Checks if Log::ostream_ is set.
Definition at line 29 of file log.h.
◆ ostream()
std::ostream & thorin::Log::ostream |
( |
| ) |
const |
|
inline |
◆ set() [1/2]
Log & thorin::Log::set |
( |
Level |
max_level | ) |
|
|
inline |
Definition at line 38 of file log.h.
◆ set() [2/2]
Log & thorin::Log::set |
( |
std::ostream * |
ostream | ) |
|
|
inline |
The documentation for this class was generated from the following files: