[][src]Struct teensyduino::serial::log::LoggingConfig

pub struct LoggingConfig {
    pub max_level: LevelFilter,
    pub filters: &'static [(&'static str, Option<LevelFilter>)],
}

Logging configuration

Allows a user to specify certain configurations of the logging system. By default, the max log level is the log level set at compile time. See the compile time filters section for more information. We also enable logging for all targets. Set the filters collection to specify log targets of interest.

If the default configuration is good for you, use Default::default() as the argument to init.

Fields

max_level: LevelFilter

The max log level

By default, we select the static max level. Users may override this if they'd like to bypass the statically-assigned max level

filters: &'static [(&'static str, Option<LevelFilter>)]

A list of filtered targets to log.

If set to an empty slice (default), the logger performs no filtering. Otherwise, we filter the specified targets by the accompanying log level. If there is no level, we default

Trait Implementations

impl Default for LoggingConfig[src]

Auto Trait Implementations

impl Send for LoggingConfig

impl Sync for LoggingConfig

impl Unpin for LoggingConfig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.