getJsonLinesFormatter(options?: JsonLinesFormatterOptions): TextFormatter
Get a JSON Lines formatter with the specified options. The log records will be rendered as JSON objects, one per line, which is a common format for log files. This format is also known as Newline-Delimited JSON (NDJSON). It looks like this:
{"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
optional
options: JsonLinesFormatterOptions
The options for the JSON Lines formatter.
The JSON Lines formatter.