The class represents the time point of log file rotation. More...
#include <text_file_backend.hpp>
Public Types | |
typedef bool | result_type |
Public Member Functions | |
BOOST_LOG_API | rotation_at_time_point (unsigned char hour, unsigned char minute, unsigned char second) |
Creates a rotation time point of every day at the specified time. More... | |
BOOST_LOG_API | rotation_at_time_point (date_time::weekdays wday, unsigned char hour=0, unsigned char minute=0, unsigned char second=0) |
Creates a rotation time point of each specified weekday at the specified time. More... | |
BOOST_LOG_API | rotation_at_time_point (gregorian::greg_day mday, unsigned char hour=0, unsigned char minute=0, unsigned char second=0) |
Creates a rotation time point of each specified day of month at the specified time. More... | |
BOOST_LOG_API bool | operator() () const |
Checks if it's time to rotate the file. More... | |
The class represents the time point of log file rotation.
One can specify one of three types of time point based rotation:
The time points are considered to be local time.
|
explicit |
Creates a rotation time point of every day at the specified time.
hour | The rotation hour, should be within 0 and 23 |
minute | The rotation minute, should be within 0 and 59 |
second | The rotation second, should be within 0 and 59 |
|
explicit |
Creates a rotation time point of each specified weekday at the specified time.
wday | The weekday of the rotation |
hour | The rotation hour, should be within 0 and 23 |
minute | The rotation minute, should be within 0 and 59 |
second | The rotation second, should be within 0 and 59 |
|
explicit |
Creates a rotation time point of each specified day of month at the specified time.
mday | The monthday of the rotation, should be within 1 and 31 |
hour | The rotation hour, should be within 0 and 23 |
minute | The rotation minute, should be within 0 and 59 |
second | The rotation second, should be within 0 and 59 |
BOOST_LOG_API bool boost::sinks::file::rotation_at_time_point::operator() | ( | ) | const |
Checks if it's time to rotate the file.