fix: change logging newlines
This commit is contained in:
parent
aaf9b540b1
commit
e96d357e6f
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