slf4d.default_provider.serializers

Defines several common default serializer implementations.

Members

Classes

ConsoleTextLogSerializer
class ConsoleTextLogSerializer

Log formatter that prints nicely formatted log messages to the console without any particular structured format. It can apply ANSI colors to the output.

JsonLogSerializer
class JsonLogSerializer

A log serializer that formats messages in a JSON string, containing all data in the original log message struct.

Functions

formatTimestampISO8601
string formatTimestampISO8601(SysTime timestamp)

Helper method to serialize a timestamp as an ISO-8601 datetime string, with minimal GC allocation. The format is "YYYY-MM-DDTHH:MM:SS.sss".