#[repr(i32)]pub enum NcLogLevel {
Silent = -1,
Panic = 0,
Fatal = 1,
Error = 2,
Warning = 3,
Info = 4,
Verbose = 5,
Debug = 6,
Trace = 7,
}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 = -1
Default. print nothing once fullscreen service begins.
Panic = 0
Print diagnostics immediately related to crashing.
Fatal = 1
We’re hanging around, but we’ve had a horrible fault.
Error = 2
We can’t keep doin’ this, but we can do other things.
Warning = 3
You probably don’t want what’s happening to happen.
Info = 4
“Standard information”.
Verbose = 5
“Detailed information”.
Debug = 6
This is honestly a bit much.
Trace = 7
There’s probably a better way to do what you want.
Trait Implementations§
Source§impl Clone for NcLogLevel
impl Clone for NcLogLevel
Source§fn clone(&self) -> NcLogLevel
fn clone(&self) -> NcLogLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for NcLogLevel
Source§impl Debug for NcLogLevel
impl Debug for NcLogLevel
Source§impl Default for NcLogLevel
impl Default for NcLogLevel
Source§impl Display for NcLogLevel
impl Display for NcLogLevel
impl Eq for NcLogLevel
Source§impl From<NcLogLevel> for NcLogLevel_i32
impl From<NcLogLevel> for NcLogLevel_i32
Source§fn from(loglevel: NcLogLevel) -> Self
fn from(loglevel: NcLogLevel) -> Self
Source§impl From<i32> for NcLogLevel
impl From<i32> for NcLogLevel
Source§fn from(log_level: NcLogLevel_i32) -> Self
fn from(log_level: NcLogLevel_i32) -> Self
Source§impl PartialEq for NcLogLevel
impl PartialEq for NcLogLevel
Source§fn eq(&self, other: &NcLogLevel) -> bool
fn eq(&self, other: &NcLogLevel) -> bool
self and other values to be equal, and is used by ==.