Skip to content

Commit 80ac9f3

Browse files
joostjagertnull
authored andcommitted
Use log timestamps with millisecond resolution
Helpful to correlate multiple log files throughout time
1 parent 4b45d7c commit 80ac9f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl LogWriter for Writer {
124124

125125
let log = format!(
126126
"{} {:<5} [{}:{}] {}\n",
127-
Utc::now().format("%Y-%m-%d %H:%M:%S"),
127+
Utc::now().format("%Y-%m-%d %H:%M:%S%.3f"),
128128
record.level.to_string(),
129129
record.module_path,
130130
record.line,

0 commit comments

Comments
 (0)