Repository navigation
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,italicStandard color red,blue,greenColor target foreground(default),background,fg,bgColor intensity dark(default),brightfollowed by a standard colorCustom color #FFA0A0Default color default foregroundCustom code 94(bright blue foreground)A full example would be:
%{color:reset, bold, bright white foreground, #2A3B4C background}.