8 #define LUG_LOG_ENUM(CHANNEL) case Level::CHANNEL: return os << #CHANNEL; 14 return os <<
"Unknown";
30 log(Level::Fatal,
"Exception in logger {}: {}",
_name, msg);
43 if (handler->shouldLog(msg.level)) {
57 static Logger logger(
"internal");
std::ostream & operator<<(std::ostream &os, Level level)
static Handler * getHandler(const std::string &handlerName)
void addHandler(Handler *handler)
std::set< Handler * > _handlers
void defaultErrHandler(const std::exception &ex)
void log(Level lvl, const T &msg)
#define LUG_LOG_LEVELS(PROCESS)
void defaultErrHandler(const std::string &msg)
const std::string & getName() const
#define LUG_LOG_ENUM(CHANNEL)
static Logger & getInternalLogger()
void handle(priv::Message &msg)