pub struct Config {
pub appenders: Vec<Box<dyn LogAppender>>,
pub level: Level,
pub filter: Box<dyn Filter>,
pub format: Box<dyn RecordFormat>,
}
Fields
appenders: Vec<Box<dyn LogAppender>>
level: Level
filter: Box<dyn Filter>
format: Box<dyn RecordFormat>
Implementations
sourceimpl Config
impl Config
pub fn new() -> Self
pub fn level(self, level: Level) -> Self
pub fn filter<F: Filter + 'static>(self, filter: F) -> Self
pub fn format<F: RecordFormat + 'static>(self, format: F) -> Self
pub fn console(self) -> Self
pub fn file(self, file: &str) -> Self
pub fn file_loop(self, file: &str, max_temp_size: LogSize) -> Self
pub fn file_split<P: Packer + 'static>(
self,
file_path: &str,
max_temp_size: LogSize,
rolling_type: RollingType,
packer: P
) -> Self
pub fn custom<Appender: LogAppender + 'static>(self, arg: Appender) -> Self
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Config
impl Send for Config
impl !Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more