From b8df4fd15b92afe02e00fb1b312d14c2d99406d8 Mon Sep 17 00:00:00 2001 From: Didier Date: Mon, 7 Aug 2023 04:26:45 +0200 Subject: [PATCH] fix: change logging newlines --- pkgr/src/logging.rs | 10 +++++----- pkgr/src/main.rs | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgr/src/logging.rs b/pkgr/src/logging.rs index 47a66bc..5cc511a 100644 --- a/pkgr/src/logging.rs +++ b/pkgr/src/logging.rs @@ -8,11 +8,11 @@ fn format_regular>(log: S, record: &Record) -> String { let line_prefix = |line: String, extend: bool| { let prefix = if extend { match record.level() { - log::Level::Trace => " :".bright_blue(), - log::Level::Debug => " :".green(), - log::Level::Info => " :".blue(), - log::Level::Warn => " :".yellow(), - log::Level::Error => " :".red(), + log::Level::Trace => " ]".bright_blue(), + log::Level::Debug => " ?".green(), + log::Level::Info => " >".blue(), + log::Level::Warn => " #".yellow(), + log::Level::Error => " !".red(), }.to_string() } else { match record.level() { diff --git a/pkgr/src/main.rs b/pkgr/src/main.rs index 7ce334c..3320e71 100644 --- a/pkgr/src/main.rs +++ b/pkgr/src/main.rs @@ -18,7 +18,8 @@ thread_local! { } fn main() { - logging::setup_logger().expect("Unable to setup logger."); + logging::setup_logger() + .expect("unable to set logger."); #[cfg(not(debug_assertions))] {