//! Policies.
usestd::error::Error;usestd::fmt;use LogFile;pubmodcompound;/// A trait implementing a rolling policy for a `RollingFileAppender`.
pubtraitPolicy: Sync + Send + 'static + fmt::Debug {/// 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.
fnprocess(&self, log:&mut LogFile)->Result<(), Box<Error>>;}