The class represents the time interval of log file rotation. More...
#include <text_file_backend.hpp>
Public Types | |
typedef bool | result_type |
Public Member Functions | |
rotation_at_time_interval (posix_time::time_duration const &interval) | |
Creates a rotation time interval of the specified duration. More... | |
BOOST_LOG_API bool | operator() () const |
Checks if it's time to rotate the file. More... | |
The class represents the time interval of log file rotation.
The log file will be rotated after the specified time interval has passed.
|
inlineexplicit |
Creates a rotation time interval of the specified duration.
interval | The interval of the rotation, should be no less than 1 second |
References BOOST_ASSERT, boost::date_time::time_duration< T, rep_type >::is_special(), and boost::date_time::time_duration< T, rep_type >::total_seconds().
BOOST_LOG_API bool boost::sinks::file::rotation_at_time_interval::operator() | ( | ) | const |
Checks if it's time to rotate the file.