mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 23:28:32 +08:00
feat: app log level add silent
This commit is contained in:
1 parent
ddfb9fd0cc
commit
8028e145f1
3 files changed
+11
-7
No files matched your search
@@ -18,6 +18,9 @@ fn init_log() -> Result<()> {
|
||||
}
|
||||
|
||||
let log_level = Config::verge().data().get_log_level();
|
||||
if log_level == LevelFilter::Off {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let local_time = Local::now().format("%Y-%m-%d-%H%M").to_string();
|
||||
let log_file = format!("{}.log", local_time);
|
||||
|
||||
Reference in new issue
Block a user