fix: change logging newlines

This commit is contained in:
Didier Slof 2023-08-07 04:26:45 +02:00
parent c5a687f6da
commit b8df4fd15b
Signed by: didier
GPG key ID: 01E71F18AA4398E5
2 changed files with 7 additions and 6 deletions

View file

@ -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() {

View file

@ -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))]
{