pub struct Log;Implementations§
Source§impl Log
impl Log
pub fn new() -> Self
pub fn set_printmode(&self, mode: PRINTMODE) -> &Self
pub fn set_level(&self, level: LEVEL) -> &Self
pub fn set_console(&self, console: bool) -> &Self
Sourcepub fn set_format(&self, format: u8) -> &Self
pub fn set_format(&self, format: u8) -> &Self
Format::LevelFlag | Format::Date | Format::Time | Format::ShortFileName;
Sourcepub fn set_formatter(&self, formatter: &str) -> &Self
pub fn set_formatter(&self, formatter: &str) -> &Self
default: “{level}{time} {file}:{message}\n”
pub fn set_cutmode_by_size( &self, filename: &str, maxsize: u64, maxbackups: u32, compress: bool, ) -> &Self
pub fn set_cutmode_by_time( &self, filename: &str, mode: MODE, maxbackups: u32, compress: bool, ) -> &Self
pub fn set_option(&self, option: LogOption) -> &Self
pub fn set_mod_option(&self, module: &str, option: LogOption) -> &Self
pub fn set_level_option(&self, level: LEVEL, option: impl OptionTrait) -> &Self
pub fn set_custom_handler(&self, handler: fn(_: &LogContext) -> bool) -> &Self
pub fn set_separator(&self, separator: &str) -> &Self
pub fn uselog(&self) -> &Self
pub fn set_attr_format<F>(&self, f: F)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Log
impl RefUnwindSafe for Log
impl Send for Log
impl Sync for Log
impl Unpin for Log
impl UnwindSafe for Log
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