pub struct LogConfig {
pub level: LogLevel,
pub format: LogFormat,
pub show_time: bool,
pub show_thread_ids: bool,
pub show_target: bool,
pub show_span_events: bool,
}Expand description
Log configuration.
Fields§
§level: LogLevelLog level.
format: LogFormatLog format.
show_time: boolWhether to show timestamps.
show_thread_ids: boolWhether to show thread IDs.
show_target: boolWhether to show target module.
show_span_events: boolWhether to show span events (function enter/exit).
Implementations§
Source§impl LogConfig
impl LogConfig
Sourcepub fn development() -> Self
pub fn development() -> Self
Creates a log configuration for development environments.
Sourcepub fn production() -> Self
pub fn production() -> Self
Creates a log configuration for production environments.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogConfig
impl RefUnwindSafe for LogConfig
impl Send for LogConfig
impl Sync for LogConfig
impl Unpin for LogConfig
impl UnwindSafe for LogConfig
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