pub struct LogConfig {
pub level: LogLevel,
pub format: LogFormat,
pub include_timestamp: bool,
pub include_location: bool,
pub service_name: String,
}Expand description
Log configuration
Fields§
§level: LogLevelMinimum log level
format: LogFormatOutput format (json or text)
include_timestamp: boolInclude timestamps
include_location: boolInclude source location
service_name: StringService name
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