change timestamp to dimmed color

master
rasul 4 years ago
parent 8f92eebb5c
commit be7a617161

@ -22,23 +22,23 @@ impl Log for Logger {
let (msg, _level) = match record.level() {
Level::Error => (
format!("{} {} {}", ts.white().bold(), "ERR".red(), record.args()),
format!("{} {} {}", ts.white().dimmed(), "ERR".red(), record.args()),
3,
),
Level::Warn => (
format!("{} {} {}", ts.white().bold(), "WRN".purple(), record.args()),
format!("{} {} {}", ts.white().dimmed(), "WRN".purple(), record.args()),
4,
),
Level::Info => (
format!("{} {} {}", ts.white().bold(), "INF".cyan(), record.args()),
format!("{} {} {}", ts.white().dimmed(), "INF".cyan(), record.args()),
6,
),
Level::Debug => (
format!("{} {} {}", ts.white().bold(), "DBG".yellow(), record.args()),
format!("{} {} {}", ts.white().dimmed(), "DBG".yellow(), record.args()),
7,
),
Level::Trace => (
format!("{} {} {}", ts.white().bold(), "TRC".green(), record.args()),
format!("{} {} {}", ts.white().dimmed(), "TRC".green(), record.args()),
0,
),
};

Loading…
Cancel
Save