* pr/43301:
Polish "Document how to use structured logging with custom log configuration"
Document how to use structured logging with custom log configuration
Closes gh-43301
@ -450,6 +450,38 @@ Spring Boot supports structured logging and has support for the following JSON f
@@ -450,6 +450,38 @@ Spring Boot supports structured logging and has support for the following JSON f
To enable structured logging, set the property configprop:logging.structured.format.console[] (for console output) or configprop:logging.structured.format.file[] (for file output) to the id of the format you want to use.
If you are using xref:#features.logging.custom-log-configuration[Custom Log Configuration], update your configuration to respect `CONSOLE_LOG_STRUCTURED_FORMAT` and `FILE_LOG_STRUCTURED_FORMAT` system properties.
Take `CONSOLE_LOG_STRUCTURED_FORMAT` for example:
[tabs]
======
Logback::
+
[source,xml]
----
<!-- replace your encoder with StructuredLogEncoder -->