TrinityCore
|
#include <Appender.h>
Public Member Functions | |
Appender (uint8 _id, std::string name, LogLevel level=LOG_LEVEL_DISABLED, AppenderFlags flags=APPENDER_FLAGS_NONE) | |
Appender (Appender const &)=delete | |
Appender (Appender &&)=delete | |
Appender & | operator= (Appender const &)=delete |
Appender & | operator= (Appender &&)=delete |
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 |
Definition at line 28 of file Appender.h.
Appender::Appender | ( | uint8 | _id, |
std::string | name, | ||
LogLevel | level = LOG_LEVEL_DISABLED , |
||
AppenderFlags | flags = APPENDER_FLAGS_NONE |
||
) |
Definition at line 22 of file Appender.cpp.
|
delete |
|
delete |
|
virtualdefault |
|
privatepure virtual |
Implemented in AppenderConsole, AppenderFile, and AppenderDB.
AppenderFlags Appender::getFlags | ( | ) | const |
Definition at line 42 of file Appender.cpp.
uint8 Appender::getId | ( | ) | const |
LogLevel Appender::getLogLevel | ( | ) | const |
Definition at line 37 of file Appender.cpp.
|
static |
std::string const & Appender::getName | ( | ) | const |
|
pure virtual |
Implemented in AppenderConsole, AppenderFile, and AppenderDB.
void Appender::setLogLevel | ( | LogLevel | _level | ) |
|
inlinevirtual |
Reimplemented in AppenderDB.
Definition at line 47 of file Appender.h.
void Appender::write | ( | LogMessage * | message | ) |
|
private |
Definition at line 55 of file Appender.h.
|
private |
Definition at line 52 of file Appender.h.
|
private |
Definition at line 54 of file Appender.h.
|
private |
Definition at line 53 of file Appender.h.