pub struct DevLogSubscriberBuilder<TimeFormatT> { /* private fields */ }
Implementations§
Source§impl<TimeFormatT> DevLogSubscriberBuilder<TimeFormatT>
impl<TimeFormatT> DevLogSubscriberBuilder<TimeFormatT>
Sourcepub fn with_timer<NewTimeFormatT: FormatTime>(
self,
timer: NewTimeFormatT,
) -> DevLogSubscriberBuilder<NewTimeFormatT>
pub fn with_timer<NewTimeFormatT: FormatTime>( self, timer: NewTimeFormatT, ) -> DevLogSubscriberBuilder<NewTimeFormatT>
Uses the given FormatTime
implementation for log time formatting.
Sourcepub fn without_time(self) -> DevLogSubscriberBuilder<()>
pub fn without_time(self) -> DevLogSubscriberBuilder<()>
Excludes timestamps from log events.
Sourcepub fn with_target(self, display_target: bool) -> Self
pub fn with_target(self, display_target: bool) -> Self
Whether to show the target of a log event (where it originated).
Sourcepub fn with_level(self, display_level: bool) -> Self
pub fn with_level(self, display_level: bool) -> Self
Whether to show the level of a log event (INFO, WARN, ERROR etc.).
Sourcepub fn with_thread_ids(self, display_thread_id: bool) -> Self
pub fn with_thread_ids(self, display_thread_id: bool) -> Self
Whether to show the ID of the current thread in log events.
Sourcepub fn with_thread_names(self, display_thread_name: bool) -> Self
pub fn with_thread_names(self, display_thread_name: bool) -> Self
Whether to show the name of the current thread in log events.
Sourcepub fn with_file(self, display_filename: bool) -> Self
pub fn with_file(self, display_filename: bool) -> Self
Whether to show the source code file path where a log event was logged.
Sourcepub fn with_line_number(self, display_line_number: bool) -> Self
pub fn with_line_number(self, display_line_number: bool) -> Self
Whether to show the line number in a source code file path where a log event was logged.
Sourcepub fn with_source_location(self, display_location: bool) -> Self
pub fn with_source_location(self, display_location: bool) -> Self
Whether to show the source code location (file path + line number) where a log event was
logged. Equivalent to calling DevLogSubscriberBuilder::with_file
and
DevLogSubscriberBuilder::with_line_number
with the same value.
Trait Implementations§
Auto Trait Implementations§
impl<TimeFormatT> Freeze for DevLogSubscriberBuilder<TimeFormatT>where
TimeFormatT: Freeze,
impl<TimeFormatT> RefUnwindSafe for DevLogSubscriberBuilder<TimeFormatT>where
TimeFormatT: RefUnwindSafe,
impl<TimeFormatT> Send for DevLogSubscriberBuilder<TimeFormatT>where
TimeFormatT: Send,
impl<TimeFormatT> Sync for DevLogSubscriberBuilder<TimeFormatT>where
TimeFormatT: Sync,
impl<TimeFormatT> Unpin for DevLogSubscriberBuilder<TimeFormatT>where
TimeFormatT: Unpin,
impl<TimeFormatT> UnwindSafe for DevLogSubscriberBuilder<TimeFormatT>where
TimeFormatT: UnwindSafe,
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