pub struct LogFile<'a> { /* private fields */ }
Expand description

Information about the active log file.

Implementations

Returns the path to the log file.

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.

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.