pub struct LogFast {
    pub filename: String,
    /* private fields */
}
Expand description

Holds the LogFast housekeeping

Fields

filename: String

filename that the LogFast thread is writing to

Implementations

Creates a new LogFast thread logger

Parameters

filename is the path to the file we want to write logs to

buffer_size is the size of the buffer to hold yet-to-be-flushed messages

Example
let buffer_size = 100;
let lf = match LogFast::new("my.log", buffer_size).unwrap();

Send a new log message to the LogFast thread, to be flushed ASAP

Parameters

msg is the log message you want to eventually be written

Example
lf.log("Here's a test log line");

Trait Implementations

Executes the destructor for this type. Read more

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.