pub struct Logger;
Expand description

Simple Logger implementation

It provides logger without filtering with following format: <level> [<date and time>] {<file>:<line>} - <args>

Timestamp is only used on std environment aside from Android.

Implementations

Prints to stdout as it is

Logger printer.

Creates new instance.

Sets log max level from RUST_LOG or if not available, use provided default level.

Requires std feature

Sets log max level, controlling which level to print at most.

By default it is off.

Initialize self as log global logger.

Initialize self as log global logger in debug mode only.

Trait Implementations

Determines if a log message with the specified metadata would be logged. Read more

Logs the Record. Read more

Flushes any buffered records.

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.