pub struct LogConfig {
pub filter: String,
pub format: LogFormat,
pub with_spans: bool,
pub with_file: bool,
pub with_thread_ids: bool,
pub with_target: bool,
}Expand description
Logging configuration
Fields§
§filter: StringLog filter directive (e.g., “debug”, “rustyclaw=debug,hyper=warn”)
format: LogFormatOutput format
with_spans: boolInclude span events (enter/exit)
with_file: boolInclude file/line in logs
with_thread_ids: boolInclude thread IDs
with_target: boolInclude target (module path)
Implementations§
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 UnsafeUnpin 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