[−][src]Function flexi_logger::style
pub fn style<T>(level: Level, item: T) -> Paint<T>
Helper function that is used in the provided colored format functions.
The palette that is used by style
can be overridden by setting the environment variable
FLEXI_LOGGER_PALETTE
to a semicolon-separated list of numbers (0..=255) and/or dashes (´-´).
The first five values denote the fixed color that is used for coloring error, warning, info,
debug, and trace messages.
FLEXI_LOGGER_PALETTE = "196;208;-;7;8"
reflects the default palette; color 196 is used for error messages, and so on.
The '-' means that no coloring is done, i.e., with "-;-;-;-;-" all coloring is switched off.
For your convenience, if you want to specify your own palette,
you can produce a colored list of all 255 colors with cargo run --example colors
to see the available colors.
Only available with feature colors
.