Module fern::colors [] [src]

Module containing color-related functions using the colored crate.

This module is only available when the colored feature is enabled for fern. This can be done with the following in Cargo.toml:

[dependencies]
# ...
fern = { version = "0.5", features = ["colored"] }

Structs

ColoredLevelConfig

Configuration specifying colors a log level can be colored as.

WithFgColor

Opaque structure which represents some text data and a color to display it with. This implements [fmt::Display] via displaying the inner text (usually a log level) with ANSI color markers before to set the color and after to reset the color.

Enums

Color

The 8 standard colors.