AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Appender.h"
Public Member Functions | |
Appender (uint8 _id, std::string const &name, LogLevel level=LOG_LEVEL_DISABLED, AppenderFlags flags=APPENDER_FLAGS_NONE) | |
virtual | ~Appender () |
uint8 | getId () const |
std::string const & | getName () const |
virtual AppenderType | getType () const =0 |
LogLevel | getLogLevel () const |
AppenderFlags | getFlags () const |
void | setLogLevel (LogLevel) |
void | write (LogMessage *message) |
virtual void | setRealmId (uint32) |
Static Public Member Functions | |
static char const * | getLogLevelString (LogLevel level) |
Private Member Functions | |
virtual void | _write (LogMessage const *)=0 |
Private Attributes | |
uint8 | id |
std::string | name |
LogLevel | level |
AppenderFlags | flags |
Appender::Appender | ( | uint8 | _id, |
std::string const & | name, | ||
LogLevel | level = LOG_LEVEL_DISABLED , |
||
AppenderFlags | flags = APPENDER_FLAGS_NONE |
||
) |
|
virtual |
|
privatepure virtual |
Implemented in AppenderConsole, AppenderFile, and AppenderDB.
Referenced by write().
AppenderFlags Appender::getFlags | ( | ) | const |
uint8 Appender::getId | ( | ) | const |
References id.
Referenced by Log::CreateAppenderFromConfig(), and Log::ReadLoggersFromConfig().
|
static |
References level, LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_FATAL, LOG_LEVEL_INFO, LOG_LEVEL_TRACE, and LOG_LEVEL_WARN.
Referenced by write().
|
pure virtual |
Implemented in AppenderConsole, AppenderFile, and AppenderDB.
void Appender::setLogLevel | ( | LogLevel | _level | ) |
|
inlinevirtual |
Reimplemented in AppenderDB.
void Appender::write | ( | LogMessage * | message | ) |
References _write(), APPENDER_FLAGS_PREFIX_LOGFILTERTYPE, APPENDER_FLAGS_PREFIX_LOGLEVEL, APPENDER_FLAGS_PREFIX_TIMESTAMP, flags, getLogLevelString(), LogMessage::getTimeStr(), level, LogMessage::level, LogMessage::prefix, Acore::StringFormat(), and LogMessage::type.
|
private |
Referenced by AppenderFile::AppenderFile(), getFlags(), and write().
|
private |
Referenced by getLogLevel(), getLogLevelString(), setLogLevel(), and write().
|
private |
Referenced by AppenderConsole::AppenderConsole(), AppenderFile::AppenderFile(), getName(), and AppenderConsole::InitColors().