Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
LogMessage Struct Reference

#include <Appender.h>

Public Member Functions

std::string getTimeStr ()
 LogMessage (LogLevel _level, std::string const &_type, std::string const &_text)
uint32 Size () const
 @ Returns size of the log message content in bytes

Static Public Member Functions

static std::string getTimeStr (time_t time)

Public Attributes

LogLevel level
time_t mtime
std::string param1
std::string prefix
std::string text
std::string type

Detailed Description

Definition at line 46 of file Appender.h.

Constructor & Destructor Documentation

◆ LogMessage()

LogMessage::LogMessage ( LogLevel _level,
std::string const & _type,
std::string const & _text )
inline

Definition at line 48 of file Appender.h.

References level, mtime, text, and type.

Member Function Documentation

◆ getTimeStr() [1/2]

std::string LogMessage::getTimeStr ( )

Definition at line 19 of file Appender.cpp.

References getTimeStr(), and mtime.

Referenced by getTimeStr().

◆ getTimeStr() [2/2]

std::string LogMessage::getTimeStr ( time_t time)
static

Definition at line 10 of file Appender.cpp.

References Skyfire::LocalTime().

Referenced by AppenderFile::OpenFile(), and Appender::write().

◆ Size()

uint32 LogMessage::Size ( ) const
inline

@ Returns size of the log message content in bytes

Definition at line 63 of file Appender.h.

References prefix, and text.

Referenced by AppenderFile::_write().

Member Data Documentation

◆ level

LogLevel LogMessage::level

◆ mtime

time_t LogMessage::mtime

Definition at line 60 of file Appender.h.

Referenced by AppenderDB::_write(), getTimeStr(), and LogMessage().

◆ param1

std::string LogMessage::param1

Definition at line 59 of file Appender.h.

Referenced by AppenderFile::_write(), Log::outCharDump(), and Log::outCommand().

◆ prefix

std::string LogMessage::prefix

Definition at line 58 of file Appender.h.

Referenced by AppenderConsole::_write(), AppenderFile::_write(), Size(), and Appender::write().

◆ text

std::string LogMessage::text

◆ type

std::string LogMessage::type

Definition at line 56 of file Appender.h.

Referenced by AppenderDB::_write(), LogMessage(), Appender::write(), and Log::write().


The documentation for this struct was generated from the following files: