Browse Source

print milliseconds as Supervisord does

Andrey Kutejko 6 years ago
parent
commit
9dafba8d74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -19,7 +19,7 @@ impl Log for SimpleLogger {
         if self.enabled(record.metadata()) {
             println!(
                 "{} {:<5} [{}] {}",
-                Local::now().format("%Y-%m-%d %H:%M:%S"),
+                Local::now().format("%Y-%m-%d %H:%M:%S,%3f"),
                 record.level().to_string(),
                 record.module_path().unwrap_or_default(),
                 record.args());