Struct pretty_logger::Theme
[−]
[src]
pub struct Theme { pub error: Style, pub warn: Style, pub info: Style, pub debug: Style, pub trace: Style, pub module: Style, }
The color scheme to use.
The default theme has:
ERROR
printed in bold red.WARN
printed in yellow.INFO
printed in cyan.DEBUG
printed in gray.TRACE
printed in dimmed gray.- The module name is not styled.
Fields
error: Style
The style to give the "ERROR" string.
warn: Style
The style to give the "WARN" string.
info: Style
The style to give the "INFO" string.
debug: Style
The style to give the "DEBUG" string.
trace: Style
The style to give the "TRACE" string.
module: Style
The style to give the module name.
Methods
impl Theme
[src]
fn empty() -> Theme
Returns a theme that does not highlight anything.
fn paint_log_level(&self, level: LogLevel) -> ANSIGenericString<'static, str>
Paints a log level with a theme.
Trait Implementations
impl Clone for Theme
[src]
fn clone(&self) -> Theme
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Theme
[src]
impl Debug for Theme
[src]
impl PartialEq for Theme
[src]
fn eq(&self, __arg_0: &Theme) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Theme) -> bool
This method tests for !=
.