pub enum LogConfig {
Screen,
File {
dir: PathBuf,
options: FileLogOptions,
},
Tracing,
Composite(Vec<LogConfig>),
}Expand description
Which log backend to construct.
Variants§
Screen
Log to stdout/stderr.
File
Log to files in a directory (messages.log + event.log).
Fields
§
options: FileLogOptionsOutput switches (FileLogHeartbeats/FileIncludeTimeStampForMessages/
FileIncludeMilliseconds; NEW-126, audit 006) — previously this variant carried only a
directory, so every LogConfig-based construction path silently ignored these options
and always built a hardcoded-default FileLog.
Tracing
Log via the tracing facade.
Composite(Vec<LogConfig>)
Fan out to several logs.
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