pub struct LoggerConfig {
pub level: Level,
pub output: LogOutput,
pub path: PathBuf,
pub max_size: u64,
pub max_files: Option<usize>,
pub app_name: String,
}Expand description
日志系统配置
Fields§
§level: Level日志级别
output: LogOutput输出目标
path: PathBuf日志路径(可以是目录或文件)
max_size: u64单个日志文件最大大小(字节)
max_files: Option<usize>最大保留文件数(None 表示无限)
app_name: String应用名称
Implementations§
Trait Implementations§
Source§impl Clone for LoggerConfig
impl Clone for LoggerConfig
Source§fn clone(&self) -> LoggerConfig
fn clone(&self) -> LoggerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LoggerConfig
impl RefUnwindSafe for LoggerConfig
impl Send for LoggerConfig
impl Sync for LoggerConfig
impl Unpin for LoggerConfig
impl UnwindSafe for LoggerConfig
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