Struct slog_html::ColorPalette
[−]
[src]
pub struct ColorPalette { pub critical: &'static str, pub error: &'static str, pub warning: &'static str, pub info: &'static str, pub debug: &'static str, pub trace: &'static str, }
Hexadecimal color codes
Fields
critical: &'static str
Color for critical messages
error: &'static str
Color for error messages
warning: &'static str
Color for warning messages
info: &'static str
Color for info messages
debug: &'static str
Color for debug messages
trace: &'static str
Color for trace messages
Methods
impl ColorPalette
[src]
fn level_to_color(&self, level: Level) -> &'static str
Returns the corresponding color for an slog level
Trait Implementations
impl Default for ColorPalette
[src]
fn default() -> Self
critical: "ff0000"
error: "ff5500"
warning: "ffaa00"
info: "55aa00"
debug: "55557f"
trace: "aaaa7f"