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