|
EpcTools
An event based multi-threaded C++ development framework.
|
A rotating file sink. More...
#include <elogger.h>
Public Member Functions | |
| ELoggerSinkRotatingFile (ELogger::LogLevel loglevel, cpStr pattern, cpStr filename, size_t maxsizemb, size_t maxfiles, Bool rotateonopen) | |
| Class constructor. More... | |
| virtual | ~ELoggerSinkRotatingFile () |
| Class destructor. More... | |
| EString & | getFilename () |
| Retrieves the log file name. More... | |
| size_t | getMaxSizeMB () |
| Retrieves the maximum log file size. More... | |
| size_t | getMaxFiles () |
| Retrieves the maximum number of files in the rotation. More... | |
| Bool | getRotateOnOpen () |
| Retrieves the rotate on open setting. More... | |
Public Member Functions inherited from ELoggerSink | |
| virtual | ~ELoggerSink () |
| Class destructor. More... | |
| SinkType | getSinkType () |
| Retrieves the sink type. More... | |
| ELogger::LogLevel | getLogLevel () |
| Retrieves the log level for this sink. More... | |
| EString | getLogLevelName () const |
| Retrieve the name of the currently assigned log level. More... | |
| EString & | getPattern () |
| Retrieves the log message formatting pattern. More... | |
| ELogger::LogLevel | setLogLevel (ELogger::LogLevel loglevel) |
| Assigns the sink log level. More... | |
| ELogger::LogLevel | setLogLevel (cpStr lvl_name) |
| Assign a log level for this sink from a log level name. More... | |
| EString & | setPattern (cpStr pattern) |
| Assigns the log message formatting pattern. More... | |
| spdlog::sink_ptr | getSinkPtr () |
| Retrieves the underlying spdlog sink pointer. More... | |
Additional Inherited Members | |
Public Types inherited from ELoggerSink | |
| enum | SinkType { eSyslog, eStdout, eStderr, eBasicFile, eRotatingFile, eDailyFile, eRingBuffer } |
| Defines the type of output sinks. More... | |
Static Public Member Functions inherited from ELoggerSink | |
| static EString & | getDefaultPattern () |
| Retrieves the default log message formatting pattern. More... | |
Protected Member Functions inherited from ELoggerSink | |
| 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... | |
A rotating file sink.
| ELoggerSinkRotatingFile::ELoggerSinkRotatingFile | ( | ELogger::LogLevel | loglevel, |
| cpStr | pattern, | ||
| cpStr | filename, | ||
| size_t | maxsizemb, | ||
| size_t | maxfiles, | ||
| Bool | rotateonopen | ||
| ) |
Class constructor.
| loglevel | the sink log level. |
| pattern | the log message formatting pattern. |
| filename | the log file name. |
| maxsizemb | the maximum size of a log file in megabytes. |
| maxfiles | the maximum number of files in the rotation. |
| rotateonopen | determines if the next file will be written to when the logger is opened. |
|
inlinevirtual |
Class destructor.
|
inline |
Retrieves the log file name.
|
inline |
Retrieves the maximum number of files in the rotation.
|
inline |
Retrieves the maximum log file size.
|
inline |
Retrieves the rotate on open setting.
1.8.11