1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

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

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!(