Преглед на файлове

feat(prototyper): change log format

guttatus преди 8 месеца
родител
ревизия
0466249e88
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      prototyper/src/sbi/logger.rs

+ 3 - 3
prototyper/src/sbi/logger.rs

@@ -25,12 +25,12 @@ impl log::Log for Logger {
         let color_code: u8 = match record.level() {
             Level::Error => 31,
             Level::Warn => 93,
-            Level::Info => 34,
-            Level::Debug => 32,
+            Level::Info => 32,
+            Level::Debug => 36,
             Level::Trace => 90,
         };
         println!(
-            "\x1b[{color_code}m[{:>5}] {}\x1b[0m",
+            "\x1b[1;37m[RustSBI] \x1b[1;{color_code}m{:^5}\x1b[0m - {}",
             record.level(),
             record.args(),
         );