pub struct LogConfigBuilder { /* private fields */ }Expand description
Builder for LogConfig.
Implementations§
Source§impl LogConfigBuilder
impl LogConfigBuilder
Sourcepub fn include_location(self, include: bool) -> Self
pub fn include_location(self, include: bool) -> Self
Set whether to include file/line location.
Sourcepub fn include_target(self, include: bool) -> Self
pub fn include_target(self, include: bool) -> Self
Set whether to include module target.
Sourcepub fn include_span_events(self, include: bool) -> Self
pub fn include_span_events(self, include: bool) -> Self
Set whether to include span events.
Sourcepub fn include_thread_ids(self, include: bool) -> Self
pub fn include_thread_ids(self, include: bool) -> Self
Set whether to include thread IDs.
Sourcepub fn include_thread_names(self, include: bool) -> Self
pub fn include_thread_names(self, include: bool) -> Self
Set whether to include thread names.
Sourcepub fn ansi_colors(self, enable: bool) -> Self
pub fn ansi_colors(self, enable: bool) -> Self
Set whether to enable ANSI colors.
Sourcepub fn dynamic_level(self, enable: bool) -> Self
pub fn dynamic_level(self, enable: bool) -> Self
Set whether to enable dynamic log level changes.
Sourcepub fn module_level(self, module: impl Into<String>, level: LogLevel) -> Self
pub fn module_level(self, module: impl Into<String>, level: LogLevel) -> Self
Add a per-module log level.
Trait Implementations§
Source§impl Debug for LogConfigBuilder
impl Debug for LogConfigBuilder
Source§impl Default for LogConfigBuilder
impl Default for LogConfigBuilder
Source§fn default() -> LogConfigBuilder
fn default() -> LogConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LogConfigBuilder
impl RefUnwindSafe for LogConfigBuilder
impl Send for LogConfigBuilder
impl Sync for LogConfigBuilder
impl Unpin for LogConfigBuilder
impl UnsafeUnpin for LogConfigBuilder
impl UnwindSafe for LogConfigBuilder
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