From e96d357e6f32f48024d4c1d87ffd5b59cf3dd2e3 Mon Sep 17 00:00:00 2001
From: Raine <raine@ixvd.net>
Date: Sat, 14 Oct 2023 22:39:47 +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<S: Into<String>>(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))]
     {