EpcTools
An event based multi-threaded C++ development framework.
|
Represents a logger output sink. More...
#include <elogger.h>
Public Types | |
enum | SinkType { eSyslog, eStdout, eStderr, eBasicFile, eRotatingFile, eDailyFile } |
Defines the type of output sinks. More... | |
Public Member Functions | |
virtual | ~ELoggerSink () |
Class destructor. More... | |
SinkType | getSinkType () |
Retrieves the sink type. More... | |
ELogger::LogLevel | getLogLevel () |
Retrieves the log level for this sink. More... | |
EString & | getPattern () |
Retrieves the log message formatting pattern. More... | |
ELogger::LogLevel | setLogLevel (ELogger::LogLevel loglevel) |
Assigns the sink log level. More... | |
EString & | setPattern (cpStr pattern) |
Assigns the log message formatting pattern. More... | |
spdlog::sink_ptr | getSinkPtr () |
Retrieves the underlying spdlog sink pointer. More... | |
Static Public Member Functions | |
static EString & | getDefaultPattern () |
Retrieves the default log message formatting pattern. More... | |
Protected Member Functions | |
ELoggerSink (SinkType sinktype, ELogger::LogLevel loglevel, cpStr pattern) | |
The base class constructor. More... | |
spdlog::sink_ptr | setSinkPtr (spdlog::sink_ptr &sinkptr) |
Assigns the spdlog pointer value. More... | |
Represents a logger output sink.
|
inlinevirtual |
Class destructor.
|
inlineprotected |
The base class constructor.
sinktype | the sink type. |
loglevel | the log level for this sink. |
pattern | the log message formatting pattern. |
|
inlinestatic |
Retrieves the default log message formatting pattern.
|
inline |
Retrieves the log level for this sink.
|
inline |
Retrieves the log message formatting pattern.
|
inline |
Retrieves the underlying spdlog sink pointer.
|
inline |
Retrieves the sink type.
|
inline |
Assigns the sink log level.
loglevel | the new sink log level. |
|
inline |
Assigns the log message formatting pattern.
pattern | the log message formatting pattern. |
|
inlineprotected |
Assigns the spdlog pointer value.
sinkptr | the spdlog pointer value. |