mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-24 04:26:40 +03:00
Add config option for log timestamp format
This commit is contained in:
1 parent
11845d9f5b
commit
d348f12a0e
3 files changed
+8
-2
No files matched your search
+2
-2
@@ -130,8 +130,8 @@ fn init_logging(level: log::LevelFilter) -> Result<(), fern::InitError> {
|
||||
if CONFIG.extended_logging() {
|
||||
logger = logger.format(|out, message, record| {
|
||||
out.finish(format_args!(
|
||||
"{}[{}][{}] {}",
|
||||
chrono::Local::now().format("[%Y-%m-%d %H:%M:%S]"),
|
||||
"[{}][{}][{}] {}",
|
||||
chrono::Local::now().format(&CONFIG.log_timestamp_format()),
|
||||
record.target(),
|
||||
record.level(),
|
||||
message
|
||||
|
||||
Reference in new issue
Block a user