A daily file sink.
More...
#include <elogger.h>
◆ ELoggerSinkDailyFile()
| ELoggerSinkDailyFile::ELoggerSinkDailyFile |
( |
ELogger::LogLevel |
loglevel, |
|
|
cpStr |
pattern, |
|
|
cpStr |
filename, |
|
|
Bool |
truncate, |
|
|
Int |
rolloverhour, |
|
|
Int |
rolloverminute |
|
) |
| |
Class constructor.
- Parameters
-
| loglevel | the sink log level. |
| pattern | the log message formatting pattern. |
| filename | the log file name. |
| truncate | indicates if the log file should be truncated if it already exists. |
| rolloverhour | the hour during the day when the rollover will occur. |
| rolloverminute | the minute within the hour when the rollover will occur. |
◆ ~ELoggerSinkDailyFile()
| virtual ELoggerSinkDailyFile::~ELoggerSinkDailyFile |
( |
| ) |
|
|
inlinevirtual |
◆ getFilename()
| EString& ELoggerSinkDailyFile::getFilename |
( |
| ) |
|
|
inline |
Retrieves the log file name.
- Returns
- the log file name.
◆ getRolloverHour()
| Int ELoggerSinkDailyFile::getRolloverHour |
( |
| ) |
|
|
inline |
Retrieves the hour during the day when the rollover will occur.
- Returns
- the hour during the day when the rollover will occur.
◆ getRolloverMinute()
| Int ELoggerSinkDailyFile::getRolloverMinute |
( |
| ) |
|
|
inline |
Retrieves the minute within the hour when the rollover will occur.
- Returns
- the minute within the hour when the rollover will occur.
◆ getTruncate()
| Bool ELoggerSinkDailyFile::getTruncate |
( |
| ) |
|
|
inline |
Retrieves the truncate flag.
- Returns
- True will cause the file to truncated when it is opened, otherwise False.
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