A rotating file sink.
More...
#include <elogger.h>
◆ ELoggerSinkRotatingFile()
ELoggerSinkRotatingFile::ELoggerSinkRotatingFile |
( |
ELogger::LogLevel |
loglevel, |
|
|
cpStr |
pattern, |
|
|
cpStr |
filename, |
|
|
size_t |
maxsizemb, |
|
|
size_t |
maxfiles, |
|
|
Bool |
rotateonopen |
|
) |
| |
Class constructor.
- Parameters
-
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. |
◆ ~ELoggerSinkRotatingFile()
virtual ELoggerSinkRotatingFile::~ELoggerSinkRotatingFile |
( |
| ) |
|
|
inlinevirtual |
◆ getFilename()
EString& ELoggerSinkRotatingFile::getFilename |
( |
| ) |
|
|
inline |
Retrieves the log file name.
- Returns
- the log file name.
◆ getMaxFiles()
size_t ELoggerSinkRotatingFile::getMaxFiles |
( |
| ) |
|
|
inline |
Retrieves the maximum number of files in the rotation.
- Returns
- the maximum number of files in the rotation.
◆ getMaxSizeMB()
size_t ELoggerSinkRotatingFile::getMaxSizeMB |
( |
| ) |
|
|
inline |
Retrieves the maximum log file size.
- Returns
- the maximum log file size.
◆ getRotateOnOpen()
Bool ELoggerSinkRotatingFile::getRotateOnOpen |
( |
| ) |
|
|
inline |
Retrieves the rotate on open setting.
- Returns
- True will cause the next file to be opened (regardless of it's size), otherwise the last file will be written to.
The documentation for this class was generated from the following files:
- /home/vagrant/share/code/epctools/include/epc/elogger.h
- /home/vagrant/share/code/epctools/src/elogger.cpp