Class Logger

Class Documentation

class Logger

Public Types

enum Level

Values:

enumerator Level_Silent
enumerator Level_Output
enumerator Level_Error
enumerator Level_Warning
enumerator Level_Debug
enumerator Level_Trace

Public Functions

Logger(ctl_id_t id, LogHandler &hdl)
explicit Logger(ctl_id_t id, Logger *prt = nullptr)
inline void set_level(int lvl)
inline int level() const
inline void set_parent(Logger *p)
inline Logger *parent() const
void log(int level, const char *format, ...)
void err(const char *format, ...)
void wng(const char *format, ...)
void dbg(const char *format, ...)

Protected Functions

inline ctl_id_t id() const
void filtered_write(int lvl, const char *fmt, std::va_list args)
void write(int lvl, ctl_id_t id, const char *fmt, std::va_list args)