pub struct LogConfig {
pub dir: Path,
pub level: String,
pub console: bool,
pub file: bool,
pub metrics: bool,
}Fields§
§dir: PathDirectory for log files and events.jsonl metrics.
level: StringMinimum level string ("trace", "debug", "info", "warn", "error").
console: boolWrite records to stderr.
file: boolWrite records to a file inside dir.
metrics: boolWrite scalar metrics to {dir}/events.jsonl.
Trait Implementations§
impl StructuralPartialEq for LogConfig
Auto Trait Implementations§
impl Forget for LogConfig
impl Freeze for LogConfig
impl Move 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