Struct teensy4_bsp::usb::LoggingConfig[][src]

pub struct LoggingConfig {
    pub max_level: LevelFilter,
    pub filters: &'static [Filter],
}
This is supported on crate feature usb-logging only.
Expand description

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 [Filter]

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

Returns the “default value” for a type. Read more

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

Performs the conversion.

Performs the conversion.

Should always be Self

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.