pub trait Policy: Sync + Send + 'static + Debug { fn process(&self, log: &mut LogFile<'_>) -> Result<()>; }
A trait implementing a rolling policy for a RollingFileAppender.
RollingFileAppender
Rolls the current log file, if necessary.
This method is called after each log event. It is provided a reference to the current log file.
Returns a name for objects implementing the trait suitable for display in error messages. Read more