Package-level declarations
Rendering log events as JSON or plain text.
Types
RenderString implementation that interprets a string pattern of tokens specifying log event fields to show.
Interface for rendering a LogEvent to a String.
Properties
Extension property that extracts the list of items and stack trace if present in a LogEvent.
Extension property for Kotlin Instant to render it in local time as two words.
Implementation of RenderString like that for Log4J2 with ANSI colouring of level output to a console.
Render a LogEvent into JSON in Elastic Common Schema for sending directly to an ELK stack.
Render a LogEvent into JSON to mimic that described in Elastic Common Schema for .NET.
Simple implementation of RenderString for output to the standard output stream, mostly on one line.
Render a LogEvent into structured JSON log format.
Functions
Extension function that replaces values of placeholders in the message
field with values of items whose keys match them.
Right-pads a character sequence within the specified width if it fits; else the right-most characters of that sequence.
Implementation of RenderString like that for Log4J2 with ANSI colouring of level output to a console.
Right-align the string into a fixed-width space.
Serialize a map with string keys to JSON.
Shortens the given name if it exceeds the specified width.
Shortens a character sequence and right-pads it if shorter than the specified width.