From 0b041c77f4167fcb0d2d8445b736757af7b8208d Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 4 Dec 2020 14:06:06 +0100 Subject: more logging --- examples/basalt.rs | 3 ++- examples/fullmesh.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/basalt.rs b/examples/basalt.rs index 141069a..ea1ea7d 100644 --- a/examples/basalt.rs +++ b/examples/basalt.rs @@ -53,8 +53,9 @@ async fn main() { .parse_env("RUST_LOG") .format(|buf, record| { writeln!(buf, - "{} {} {}", + "{} {} {} {}", chrono::Local::now().format("%s%.6f"), + record.module_path().unwrap_or("_"), record.level(), record.args() ) diff --git a/examples/fullmesh.rs b/examples/fullmesh.rs index a61ab3d..a24d343 100644 --- a/examples/fullmesh.rs +++ b/examples/fullmesh.rs @@ -32,8 +32,9 @@ async fn main() { .parse_env("RUST_LOG") .format(|buf, record| { writeln!(buf, - "{} {} {}", + "{} {} {} {}", chrono::Local::now().format("%s%.6f"), + record.module_path().unwrap_or("_"), record.level(), record.args() ) -- cgit v1.2.3