[][src]Struct log4rs::append::rolling_file::LogFile

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

Information about the active log file.

Methods

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

pub fn path(&self) -> &Path[src]

Returns the path to the log file.

pub fn len(&self) -> u64[src]

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.

pub fn roll(&mut self)[src]

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 on disk when the policy returns.

Auto Trait Implementations

impl<'a> Send for LogFile<'a>

impl<'a> Sync for LogFile<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any