Struct log4rs_rolling_file::LogFile [] [src]

pub struct LogFile<'a> {
    // some fields omitted
}

Information about the active log file.

Methods

impl<'a> LogFile<'a>
[src]

fn path(&self) -> &Path

Returns the path to the log file.

fn len(&self) -> u64

Returns an estimate of the log file's current size.

This is calculated by taking the size of the log file when it is opened and adding the number of bytes written. It may be inaccurate if any writes have failed or if another process has modified the file concurrently.

fn roll(&mut self)

Triggers the log file to roll over.

A policy must call this method when it wishes to roll the log. The appender's handle to the file will be closed, which is necessary to move or delete the file on Windows.

If this method is called, the log file must no longer be present when the policy returns.