#include <Appender.h>
LogMessage::LogMessage |
( |
LogLevel |
_level, |
|
|
std::string const & |
_type, |
|
|
std::string && |
_text |
|
) |
| |
|
inline |
std::string const type
Definition: Appender.h:75
LogLevel const level
Definition: Appender.h:74
std::string const text
Definition: Appender.h:76
arena_t NULL
Definition: jemalloc_internal.h:624
time_t mtime
Definition: Appender.h:79
std::string LogMessage::getTimeStr |
( |
time_t |
time | ) |
|
|
static |
31 snprintf(buf, 20,
"%04d-%02d-%02d_%02d:%02d:%02d", aTm.tm_year+1900, aTm.tm_mon+1, aTm.tm_mday, aTm.tm_hour, aTm.tm_min, aTm.tm_sec);
32 return std::string(buf);
#define snprintf
Definition: Common.h:76
TC_COMMON_API struct tm * localtime_r(const time_t *time, struct tm *result)
std::string LogMessage::getTimeStr |
( |
| ) |
|
std::string getTimeStr()
Definition: Appender.cpp:35
time_t mtime
Definition: Appender.h:79
uint32 LogMessage::Size |
( |
| ) |
const |
|
inline |
@ Returns size of the log message content in bytes
std::string prefix
Definition: Appender.h:77
std::string const text
Definition: Appender.h:76
uint32_t uint32
Definition: Define.h:150
std::string LogMessage::param1 |
std::string LogMessage::prefix |
std::string const LogMessage::text |
std::string const LogMessage::type |
The documentation for this struct was generated from the following files: