pub struct LogConfig {
pub level: String,
pub format: Option<LogFormat>,
}Expand description
Logging configuration.
Controls the log level filter and output format.
Missing fields fall back to LogConfig::default.
Fields§
§level: StringTracing filter directive used when RUST_LOG is not set.
Accepts the same syntax as RUST_LOG (e.g. babyrite=debug).
Defaults to babyrite=info.
format: Option<LogFormat>Output format. When unset, falls back to the deprecated json_logging
flag (see BabyriteConfig::resolved_log_format).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogConfig
impl<'de> Deserialize<'de> for LogConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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