Struct convey::Output

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

Structure holding your output targets

Implementations

Add a target to output to

Initializes the global logger with an Output instance with max_log_level set to a specific log level.

let output = convey::new()
    .add_target(convey::human::stdout()?)?
    .use_as_logger(log::Level::Debug)?;

log::info!("welcome");
log::error!("oh noes");

Print some item to the currently active output targets

Immediately write all buffered output

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more
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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.