AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "AppenderDB.h"
Public Member Functions | |
AppenderDB (uint8 id, std::string const &name, LogLevel level, AppenderFlags flags, std::vector< std::string_view > const &args) | |
~AppenderDB () | |
void | setRealmId (uint32 realmId) override |
AppenderType | getType () const override |
Public Member Functions inherited from Appender | |
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 Attributes | |
static constexpr AppenderType | type = APPENDER_DB |
Private Member Functions | |
void | _write (LogMessage const *message) override |
Private Attributes | |
uint32 | realmId |
bool | enabled |
Additional Inherited Members | |
Static Public Member Functions inherited from Appender | |
static char const * | getLogLevelString (LogLevel level) |
AppenderDB::AppenderDB | ( | uint8 | id, |
std::string const & | name, | ||
LogLevel | level, | ||
AppenderFlags | flags, | ||
std::vector< std::string_view > const & | args | ||
) |
AppenderDB::~AppenderDB | ( | ) |
|
overrideprivatevirtual |
Implements Appender.
References enabled, LogMessage::level, LOGIN_INS_LOG, LoginDatabase, LogMessage::mtime, realmId, PreparedStatementBase::SetData(), LogMessage::text, and LogMessage::type.
|
inlineoverridevirtual |
|
overridevirtual |
|
private |
Referenced by _write(), and setRealmId().
|
private |
Referenced by _write(), and setRealmId().
|
staticconstexpr |
Referenced by getType().