AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "LogMessage.h"
Public Member Functions | |
LogMessage (LogLevel _level, std::string const &_type, std::string_view _text) | |
LogMessage (LogLevel _level, std::string const &_type, std::string_view _text, std::string_view _param1) | |
LogMessage (LogMessage const &)=delete | |
LogMessage & | operator= (LogMessage const &)=delete |
std::string | getTimeStr () const |
uint32 | Size () const |
@ Returns size of the log message content in bytes More... | |
Static Public Member Functions | |
static std::string | getTimeStr (Seconds time) |
Public Attributes | |
LogLevel const | level |
std::string const | type |
std::string const | text |
std::string | prefix |
std::string | param1 |
Seconds | mtime |
LogMessage::LogMessage | ( | LogLevel | _level, |
std::string const & | _type, | ||
std::string_view | _text | ||
) |
LogMessage::LogMessage | ( | LogLevel | _level, |
std::string const & | _type, | ||
std::string_view | _text, | ||
std::string_view | _param1 | ||
) |
|
delete |
std::string LogMessage::getTimeStr | ( | ) | const |
References getTimeStr(), and mtime.
Referenced by getTimeStr(), and AppenderFile::OpenFile().
|
static |
References Acore::Time::TimeToTimestampStr().
Referenced by Appender::write().
|
delete |
|
inline |
LogLevel const LogMessage::level |
Referenced by AppenderConsole::_write(), AppenderDB::_write(), and Appender::write().
Seconds LogMessage::mtime |
Referenced by AppenderDB::_write(), and getTimeStr().
std::string LogMessage::param1 |
Referenced by AppenderFile::_write().
std::string LogMessage::prefix |
Referenced by AppenderConsole::_write(), AppenderFile::_write(), Size(), and Appender::write().
std::string const LogMessage::text |
Referenced by AppenderConsole::_write(), AppenderFile::_write(), AppenderDB::_write(), Size(), and Logger::write().
std::string const LogMessage::type |
Referenced by AppenderDB::_write(), and Appender::write().