Skip to content

Commit

Permalink
feat: add styles for trace and fatal levels
Browse files Browse the repository at this point in the history
  • Loading branch information
hackedd committed Dec 20, 2023
1 parent 7afefe0 commit d9ea29e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ pub static DEFAULT_ADDITIONAL_VALUE_FORMAT: &str = "{{bold (color_rgb 150 150 15

fn level_to_style(level: &str) -> Style {
match level.trim().to_lowercase().as_ref() {
"trace" => Color::Cyan,
"debug" => Color::Blue,
"info" => Color::Green,
"warn" | "warning" => Color::Yellow,
"error" | "err" => Color::Red,
"debug" => Color::Blue,
"fatal" => Color::Magenta,
_ => Color::Magenta,
}
.style()
Expand Down

0 comments on commit d9ea29e

Please sign in to comment.