rs_pkg/log/config.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]
4pub struct Config {
5 pub level: String,
6 // 是否 log 代码所在行
7 pub with_line: bool,
8 pub console: bool,
9}
10
11impl Default for Config {
12 fn default() -> Self {
13 Self {
14 level: "DEBUG".to_string(),
15 with_line: true,
16 console: true,
17 }
18 }
19}