[−][src]Struct casual_logger::Logger
Configuration.
All: 'tic-tac-toe-2020-07-11.log.toml' Prefix: 'tic-tac-toe' StartDate: '-2020-07-11' Suffix: '.log' Extention: '.toml'
If you don't like the .toml extension, leave the suffix empty and the .log extension.
Fields
retention_days: i64
Please use the casual_logger::Log::set_retention_days() method instead
File retention days. Delete the file after day from StartDate.
level: Level
Please use the casual_logger::Log::set_level() method instead
Activation.
fatal_timeout_secs: u64
Please use the logger.timeout_secs property instead
Timeout seconds when fatal.
timeout_secs: u64
Timeout seconds.
development: bool
Set to true to allow Casual_logger to output information to stdout and stderr.
Implementations
impl Logger
[src]
pub fn enabled(&self, level: Level) -> bool
[src]
Check level.
pub fn get_file_prefix(&self) -> &str
[src]
Example:
If 'tic-tac-toe-2020-07-11.log.toml', This is 'tic-tac-toe'.
pub fn get_file_suffix(&self) -> &str
[src]
Example:
If 'tic-tac-toe-2020-07-11.log.toml', This is '.log'.
pub fn get_file_extention(&self) -> &str
[src]
Example:
If 'tic-tac-toe-2020-07-11.log.toml', This is '.toml'.
pub fn set_file_name(&mut self, prefix: &str, suffix: &str, extention: &str)
[src]
Please use the casual_logger::Log::set_file_name() or casual_logger::Log::set_toml_ext() method instead
Set name except StartDate.
Example: 'tic-tac-toe-2020-07-11.log.toml'
- Prefix: 'tic-tac-toe'
- StartDate: '-2020-07-11'
- Suffix: '.log'
- Extention: '.toml'
pub fn remove_old_logs(&self) -> usize
[src]
Please use the casual_logger::Log::remove_old_logs() method instead
For log rotation.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,