Add seconds and nanoseconds to log output

This commit is contained in:
Christian Duerr 2020-02-14 07:35:34 +00:00 committed by GitHub
parent 696fc792e8
commit 988a846c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ impl log::Log for Logger {
fn log(&self, record: &log::Record<'_>) {
if self.enabled(record.metadata()) && record.target().starts_with("alacritty") {
let now = time::strftime("%F %R", &time::now()).unwrap();
let now = time::strftime("%F %T.%f", &time::now()).unwrap();
let msg = if record.level() >= Level::Trace {
format!(