Struct log4rs::encode::Style [] [src]

pub struct Style {
    pub text: Option<Color>,
    pub background: Option<Color>,
    pub intense: Option<bool>,
    // some fields omitted
}

The style applied to text output.

Any fields set to None will be set to their default format, as defined by the Writer.

Fields

The text (or foreground) color.

The background color.

True if the text should have increased intensity.

Methods

impl Style
[src]

Returns a Style with all fields set to their defaults.

Sets the text color.

Sets the background color.

Sets the text intensity.

Trait Implementations

impl Clone for Style
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Style
[src]

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

impl Debug for Style
[src]

Formats the value using the given formatter.