Skip to content

Commit

Permalink
Update the pretty-colored example about true colors
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Sep 11, 2020
1 parent 115710b commit e419505
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/pretty-colored.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ fn set_up_logging() {
// configure colors for the whole line
let colors_line = ColoredLevelConfig::new()
.error(Color::Red)
.warn(Color::Yellow)
// custom color (orange)
.warn(Color::TrueColor {
r: 255,
g: 165,
b: 0,
})
// we actually don't need to specify the color for debug and info, they are white by default
.info(Color::White)
.debug(Color::White)
Expand Down

0 comments on commit e419505

Please sign in to comment.