Struct ignite::log::Log

source ·
pub struct Log { /* private fields */ }
Expand description

A basic log structure containing a vector of entries.

Implementations§

Create a new Log structure.

Set the file which log entries will be written to.

Set the write status of the log. This dictates what and how stuff is logged. Must be a value between 0-3. Below is a list of what the values mean. Note that all modes write the log to memory.

0 # Log entries are written to memory but nothing else.

1 # Log entries are automatically printed as they are created.

2 # Log entries are written to a set file as they are created.

3 # Mode 3 is a combination of mode 1 and 2.

Clear all entries in the log.

Render the log to a vector of strings.

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. 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.

Converts the given value to a String. Read more
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.