#[repr(i32)]
pub enum NcLogLevel {
    Silent,
    Panic,
    Fatal,
    Error,
    Warning,
    Info,
    Verbose,
    Debug,
    Trace,
}
Expand description

Log level for NcOptions.

Default

These log levels consciously map cleanly to those of libav; notcurses itself does not use this full granularity.

The log level does not affect the opening and closing banners, which can be disabled via NcFlag::SuppressBanners

Note that if stderr is connected to the same terminal on which we’re rendering, any kind of logging will disrupt the output.

Variants§

§

Silent

Default. print nothing once fullscreen service begins.

§

Panic

Print diagnostics immediately related to crashing.

§

Fatal

We’re hanging around, but we’ve had a horrible fault.

§

Error

We can’t keep doin’ this, but we can do other things.

§

Warning

You probably don’t want what’s happening to happen.

§

Info

“Standard information”.

§

Verbose

“Detailed information”.

§

Debug

This is honestly a bit much.

§

Trace

There’s probably a better way to do what you want.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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
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.