pub struct Config {
pub level: LogLevel,
pub targets: Vec<Box<dyn Target>>,
pub format: Option<Box<dyn Formatter>>,
}Expand description
Configuration for initializing a logger.
This struct allows customizing the logger’s behavior by specifying the minimum log level, output targets, and formatting options.
Fields§
§level: LogLevelThe minimum log level that will be processed.
targets: Vec<Box<dyn Target>>List of targets where log messages will be sent.
format: Option<Box<dyn Formatter>>Optional formatter for customizing log message appearance.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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