Skip to content

v2.6.1

Latest

Choose a tag to compare

@ltrzesniewski ltrzesniewski released this 12 Feb 18:23
· 48 commits to master since this release

New features

Improved support of ANSI color codes in log patterns

  • Added a %{color:...} placeholder which defines the color to use in its format string.

    The %{color:...} placeholder can be used to set the color of the following text in a terminal by emitting SGR ANSI codes.
    The format string of this placeholder can contain multiple comma- or semicolon-separated values which specify the attributes of the emitted ANSI code. Color definitions are defined in a single value.

    Supported values include:

    Type Examples
    Attribute reset, bold, italic
    Standard color red, blue, green
    Color target foreground (default), background, fg, bg
    Color intensity dark (default), bright followed by a standard color
    Custom color #FFA0A0
    Default color default foreground
    Custom code 94 (bright blue foreground)

    A full example would be: %{color:reset, bold, bright white foreground, #2A3B4C background}.