From 83986e883e39d547d243ad99fb543d9aa4139acf Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Wed, 19 Feb 2025 09:28:54 -0800 Subject: [PATCH] Add docs for log.console-format --- docs/src/main/sphinx/admin/properties-logging.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/src/main/sphinx/admin/properties-logging.md b/docs/src/main/sphinx/admin/properties-logging.md index ea57c2f0a54b..3bbb83c80d23 100644 --- a/docs/src/main/sphinx/admin/properties-logging.md +++ b/docs/src/main/sphinx/admin/properties-logging.md @@ -26,6 +26,18 @@ line. Any newlines in the field values, such as exception stack traces, are escaped as normal in the JSON object. This allows for capturing and indexing exceptions as singular fields in a logging search system. +## `log.console-format` + +- **Type:** {ref}`prop-type-string` +- **Default value:** `TEXT` + +The format for log records written to the console output, set to either `TEXT` +or `JSON`. When set to `JSON`, the log record is formatted as a JSON object, one +record per line. Any newlines in the field values, such as exception stack +traces, are escaped as normal in the JSON object. This allows for capturing and +indexing exceptions as singular fields in a logging search system when using +console output and capturing it, as commonly configured in containers. + ## `log.path` - **Type:** {ref}`prop-type-string`