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

The style to give the "ERROR" string.

The style to give the "WARN" string.

The style to give the "INFO" string.

The style to give the "DEBUG" string.

The style to give the "TRACE" string.

The style to give the module name.

Methods

impl Theme
[src]

[src]

Returns a theme that does not highlight anything.

[src]

Paints a log level with a theme.

Trait Implementations

impl Clone for Theme
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Theme
[src]

impl Debug for Theme
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Theme
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Default for Theme
[src]

[src]

Returns the "default value" for a type. Read more