[−][src]Struct bdrck::logging::Options
Options is a structure which describes the options for a Logger. Generally these should be constructed using OptionsBuilder, instead of filling in all fields by hand.
Fields
filters: LogFilters
Filters controlling which log statements are enabled. If unspecified, defaults to the value of the RUST_LOG environment variable. If that is also unspecified, then by default all logging statements are enabled.
max_level: LevelFilter
The global maximum enabled logging level. This is basically the highest
level configured in any of filters
, or LevelFilter::Trace
by default
(meaning that all log messages are enabled, if no filters are
specified).
output_factory: LogOutputFactory
Where to write log output to. If unspecified, defaults to stderr.
panic_on_output_failure: bool
Whether or not a log output (or flush) failure should result in a panic. Panicing is the "safest" option in some sense, but the default behavior is to silently ignore failures (under the assumption that most of the time users will want the application to continue working even if it can't produce log output).
always_flush: bool
If true, always call flush() after each log statement. This has a significant negative impact on performance, but it does mean that log statements will appear immediately, which may be useful e.g. for debugging. By default, this feature is disabled.
Auto Trait Implementations
impl Send for Options
impl Unpin for Options
impl Sync for Options
impl !UnwindSafe for Options
impl !RefUnwindSafe for Options
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,