Struct bdrck::logging::OptionsBuilder
source · [−]pub struct OptionsBuilder { /* private fields */ }
Expand description
OptionsBuilder provides a builder-style interface to construct an Options.
Implementations
Construct a new OptionsBuilder, which by default just sets the options to their default values.
Set the filters which will be applied to any logging calls before actually logging them.
Set the output factory the Logger should use. This can be used to redirect logging output more generically, although for the common case set_output_to might be easier to use.
Configure the Logger to write its log output to the given Write implementation (e.g. a File). This is a convenience function which just calls set_output_factory under the hood.
Set whether or not the Logger should panic! if writing log output fails. Generally this can be useful for debugging, but in real production code losing a log entry might not be a good enough reason to terminate the entire process.
Set whether or not the Logger should flush its output after every logging call. The benefit is that log messages show up immediately, and are less susceptible to “corruption” when logging from multiple threads, but the cost is a significant performance penalty for all logging calls.
Auto Trait Implementations
impl !RefUnwindSafe for OptionsBuilder
impl Send for OptionsBuilder
impl Sync for OptionsBuilder
impl Unpin for OptionsBuilder
impl !UnwindSafe for OptionsBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more