]> git.lizzy.rs Git - rust.git/commitdiff
re-introduce the module name to the logs and show vertical bars
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Tue, 31 May 2016 14:51:30 +0000 (16:51 +0200)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Wed, 1 Jun 2016 09:47:55 +0000 (11:47 +0200)
src/bin/miri.rs

index 13025cc668be8f4398858e0c46c1e85f09d3ec57..dfb325642eb588c069de3a1a47646eda617957e7 100644 (file)
@@ -44,9 +44,9 @@ fn init_logger() {
     let format = |record: &log::LogRecord| {
         // prepend spaces to indent the final string
         let indentation = log_settings::settings().indentation;
-        let spaces = "                                  ";
+        let spaces = "    |    |    |    |    |    |    |    |    ";
         let indentation = &spaces[..std::cmp::min(indentation, spaces.len())];
-        format!("{} -{} {}", record.level(), indentation, record.args())
+        format!("{}:{}|{} {}", record.level(), record.location().module_path(), indentation, record.args())
     };
 
     let mut builder = env_logger::LogBuilder::new();