fix: change logging newlines
This commit is contained in:
parent
c5a687f6da
commit
b8df4fd15b
2 changed files with 7 additions and 6 deletions
|
@ -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() {
|
||||
|
|
|
@ -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))]
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue