8 #ifndef INCL_evo_logger_console_h 9 #define INCL_evo_logger_console_h 36 const char* LEVEL_STR[] = {
"[ALRT]",
"[ERRR]",
"[WARN]",
"[INFO]",
"[dbug]",
"[dbgl]" };
38 const SubString level_str(LEVEL_STR[(
int)level - 1], LEVEL_LEN);
LoggerConsole(LogLevel level=LOG_LEVEL_WARN)
Constructor.
Definition: logger_console.h:31
void store(T num, MemOrder mem_order=std::memory_order_seq_cst)
Store new value.
void log_direct(LogLevel level, const SubString &msg)
Log a message with given log level directly without checking the current log level.
Definition: logger_console.h:35
OutT err
Write to console, error output.
Definition: iothread.h:214
Logger that writes to console.
Definition: logger_console.h:26
Multithreaded console I/O.
Definition: iothread.h:206
Evo Input/Output streams with multithreading.
ConsoleMT & con_mt()
Shortcut for ConsoleMT::get().
Definition: iothread.h:233
uint32 StrSizeT
Default Evo string size type.
Definition: sys.h:734
static const NewlineDefault & NL
Default newline type.
Definition: sys.h:785
Evo C++ Library namespace.
Definition: alg.h:11
#define EVO_IO_MT(STREAM, CODE)
Lock mutex and run stream operation code.
Definition: iothread.h:70
Reference and access existing string data.
Definition: substring.h:229
Base class for Logger.
Definition: logger.h:273
AtomicInt level_
Log level, messages less severe than this are ignored (not logged)
Definition: logger.h:363