Package io.jstach.rainbowgum.format
@NullMarked
package io.jstach.rainbowgum.format
Standard Formatters.
-
ClassDescriptionAn abstract formatter where the actual full layout of the event is not a concern of the user and by default usually has the semi-standard layout of TTLL - Time, Thread, Level, Logger.Abstract TTLL Builder.Detects whether the current process is attached to an ANSI capable terminal so that formatters (e.g. the pattern module's color keywords) can decide whether to emit ANSI escape codes in the first place instead of emitting and later stripping them.A field every event has, for the
columnsproperty of theltsvencoder.Builder to createLogFormatter.How the corejson5encoder lays out each event's object.Builds aLogFormatterthat appends event key values percent encoded, or as JSON, JSON5, or logfmt text, directly to aStringBuilder.Syntax of the key values object.Where an event's key values go in a structured event format such as the corejsonencoder.Builder to createLogFormatter.Builder to createLogFormatter.A TTLL formatter that has the layout of TTLL - Time, Thread, Level, Logger but allows changing the format of time, thread, level, logger, etc.Builder forStandardEventFormatteraka TTLL formatter.Which thread fields the corejson5andlogfmtencoders write.The choices for each part of the TTLL (Time, Thread, Level, Logger) format, the default text format, configured withTTLLFormatterBuilderor properties of the "ttll" encoder.Whether to color, seeTTLL.ColorThemefor which colors.ANSI color theme, the colors used whenTTLL.ColorModedecides to color.Builds aTTLL.ColorTheme.Key values part, written in braces after the logger name; seeTTLL.KeyValuesWhenEmptyfor events with no key values.Whether the key values braces are written when an event has no key values.Level part.Logger name part.Thread part, written in square brackets.Time part.Builder to createLogFormatter.