[−][src]Struct casual_logger::Logger
Please use the casual_logger::Log::xxxx() methods instead
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
level: Level
Please use the casual_logger::Log::set_level() method instead
Activation.
retention_days: i64
Please use the casual_logger::Log::set_retention_days() method instead
File retention days. Delete the file after day from StartDate.
timeout_secs: u64
Please use the casual_logger::Log::set_timeout_secs() method instead
Timeout seconds.
fatal_timeout_secs: u64
Please use the casual_logger::Log::set_timeout_secs() method instead
Timeout seconds when fatal.
development: bool
Please use the casual_logger::Log::set_opt(Opt::Development) method instead
Set to true to allow Casual_logger to output information to stdout and stderr.
Implementations
impl Logger
[src]
pub fn create_seq() -> u128
[src]
Automatic sequential number on thread.
pub fn enabled(&self, level: Level) -> bool
[src]
Check level.
pub fn get_file_prefix(&self) -> &str
[src]
Please use the casual_logger::Log::get_file_name() method instead
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_extension(&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, extension: &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>,