Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add date to the log format
Petros Amoiridisf088de5947f6
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rsindex 6baf08b01e0..16fd0c1eeab 100644--- a/crates/zed/src/main.rs+++ b/crates/zed/src/main.rs@@ -29,6 +29,7 @@ use settings::{self, settings_file::SettingsFile, KeymapFileContent, Settings, SettingsFileContent,WorkingDirectory,};+use simplelog::ConfigBuilder;use smol::process::Command;use std::fs::OpenOptions;use std::{env, ffi::OsStr, panic, path::PathBuf, sync::Arc, thread, time::Duration};@@ -269,8 +270,12 @@ fn init_logger() {.append(true).open(&*paths::LOG).expect("could not open logfile");- simplelog::WriteLogger::init(level, simplelog::Config::default(), log_file)- .expect("could not initialize logger");++ let config = ConfigBuilder::new()+ .set_time_format_str("%Y-%m-%dT%T") //All timestamps are UTC+ .build();++ simplelog::WriteLogger::init(level, config, log_file).expect("could not initialize logger");}}