23id(_id), name(
std::move(_name)), level(_level),
flags(_flags) { }
59 message->
prefix.reserve(100);
65 message->
prefix.append(1,
' ');
73 message->
prefix.append(1,
'[');
75 message->
prefix.append(
"] ", 2);
@ APPENDER_FLAGS_PREFIX_TIMESTAMP
@ APPENDER_FLAGS_PREFIX_LOGFILTERTYPE
@ APPENDER_FLAGS_PREFIX_LOGLEVEL
LogLevel getLogLevel() const
virtual void _write(LogMessage const *)=0
void write(LogMessage *message)
AppenderFlags getFlags() const
std::string const & getName() const
static char const * getLogLevelString(LogLevel level)
Appender(uint8 _id, std::string name, LogLevel level=LOG_LEVEL_DISABLED, AppenderFlags flags=APPENDER_FLAGS_NONE)
void setLogLevel(LogLevel)
OutputIt StringFormatTo(OutputIt out, FormatString< Args... > fmt, Args &&... args)
static std::string getTimeStr(time_t time)