pub struct LoggingBuilder { /* private fields */ }Expand description
Builder for logging configuration
Implementations§
Source§impl LoggingBuilder
impl LoggingBuilder
Sourcepub fn with_level(self, level: Level) -> Self
pub fn with_level(self, level: Level) -> Self
Set the minimum log level
Sourcepub fn with_target_filter(self, target: &'static str) -> Self
pub fn with_target_filter(self, target: &'static str) -> Self
Filter to only show logs from a specific target
Sourcepub fn with_line_number(self) -> Self
pub fn with_line_number(self) -> Self
Include line numbers in log output
Sourcepub fn with_thread_ids(self) -> Self
pub fn with_thread_ids(self) -> Self
Include thread IDs in log output
Sourcepub fn with_thread_names(self) -> Self
pub fn with_thread_names(self) -> Self
Include thread names in log output
Trait Implementations§
Source§impl Clone for LoggingBuilder
impl Clone for LoggingBuilder
Source§fn clone(&self) -> LoggingBuilder
fn clone(&self) -> LoggingBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoggingBuilder
impl Debug for LoggingBuilder
Auto Trait Implementations§
impl Freeze for LoggingBuilder
impl RefUnwindSafe for LoggingBuilder
impl Send for LoggingBuilder
impl Sync for LoggingBuilder
impl Unpin for LoggingBuilder
impl UnsafeUnpin for LoggingBuilder
impl UnwindSafe for LoggingBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<R, D> DepsPresent<D> for R
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging