mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-06-12 05:07:40 +02:00
Add config option for log timestamp format
This commit is contained in:
@ -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