TrinityCore
LogMessage Struct Reference

#include <LogMessage.h>

Public Member Functions

 LogMessage (LogLevel _level, std::string_view _type, std::string _text)
 
 LogMessage (LogLevel _level, std::string_view _type, std::string _text, std::string _param1)
 
 LogMessage (LogMessage const &)=delete
 
LogMessageoperator= (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 (time_t time)
 

Public Attributes

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

Detailed Description

Definition at line 26 of file LogMessage.h.

Constructor & Destructor Documentation

◆ LogMessage() [1/3]

LogMessage::LogMessage ( LogLevel  _level,
std::string_view  _type,
std::string  _text 
)

Definition at line 22 of file LogMessage.cpp.

◆ LogMessage() [2/3]

LogMessage::LogMessage ( LogLevel  _level,
std::string_view  _type,
std::string  _text,
std::string  _param1 
)

Definition at line 27 of file LogMessage.cpp.

◆ LogMessage() [3/3]

LogMessage::LogMessage ( LogMessage const &  )
delete

Member Function Documentation

◆ getTimeStr() [1/2]

std::string LogMessage::getTimeStr ( ) const

Definition at line 39 of file LogMessage.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTimeStr() [2/2]

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

Definition at line 32 of file LogMessage.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

LogMessage & LogMessage::operator= ( LogMessage const &  )
delete

◆ Size()

uint32 LogMessage::Size ( ) const
inline

@ Returns size of the log message content in bytes

Definition at line 45 of file LogMessage.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ level

LogLevel const LogMessage::level

Definition at line 37 of file LogMessage.h.

◆ mtime

time_t LogMessage::mtime

Definition at line 42 of file LogMessage.h.

◆ param1

std::string LogMessage::param1

Definition at line 41 of file LogMessage.h.

◆ prefix

std::string LogMessage::prefix

Definition at line 40 of file LogMessage.h.

◆ text

std::string const LogMessage::text

Definition at line 39 of file LogMessage.h.

◆ type

std::string const LogMessage::type

Definition at line 38 of file LogMessage.h.


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