pub struct Setting {
pub dir_path: String,
pub single_length: usize,
pub file_record_level: LogLevel,
pub terminal_print_level: LogLevel,
pub time_detailed_display: bool,
pub file_time_format: String,
pub time_zone: i32,
pub print_out: bool,
pub disabled: bool,
}Expand description
the configuration of the logger.
Fields§
§dir_path: Stringwhere stores the log files.
single_length: usizethe maximum number of logs in a single file.
file_record_level: LogLeveldefine the minimum LogLevel of the log that should be written. (inclusive)
terminal_print_level: LogLeveldefine the minimum LogLevel of the log that should be printed. (inclusive)
time_detailed_display: booldefine to show the detailed time or not.
file_time_format: Stringthe prefix of the time.
time_zone: i32the time zone of the log.
print_out: boolsetting whether to print the log to the terminal.
disabled: boolsetting whether to log or not
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Setting
impl RefUnwindSafe for Setting
impl Sync for Setting
impl Unpin for Setting
impl UnwindSafe for Setting
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