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

Color for critical messages

Color for error messages

Color for warning messages

Color for info messages

Color for debug messages

Color for trace messages

Methods

impl ColorPalette
[src]

Returns the corresponding color for an slog level

Trait Implementations

impl Default for ColorPalette
[src]

critical: "ff0000"
error: "ff5500"
warning: "ffaa00"
info: "55aa00"
debug: "55557f"
trace: "aaaa7f"