From 2ff6dea5caf766cadf2696dc1e5b33b15982cf8d Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Thu, 5 Dec 2024 10:13:08 +0100 Subject: [PATCH] Polish "Document how to use structured logging with custom log configuration" See gh-43301 --- .../modules/reference/pages/features/logging.adoc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/logging.adoc b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/logging.adoc index 7fa0b1d1d3..4af1cb2030 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/logging.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/logging.adoc @@ -464,6 +464,11 @@ Logback:: ${CONSOLE_LOG_CHARSET} ---- ++ +You can also refer to the default configurations included in Spring Boot: ++ +* {code-spring-boot}/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/structured-console-appender.xml[Logback Structured Console Appender] +* {code-spring-boot}/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/structured-file-appender.xml[Logback Structured File Appender] Log4j2:: + [source,xml] @@ -471,13 +476,12 @@ Log4j2:: ---- -====== -You can refer to default configurations in `spring-boot.jar` for fine-grained control: - -* {code-spring-boot}/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/structured-console-appender.xml[Logback Structured Console Appender] -* {code-spring-boot}/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/structured-file-appender.xml[Logback Structured File Appender] ++ +You can also refer to the default configurations included in Spring Boot: ++ * {code-spring-boot}/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2.xml[Log4j2 Console Appender] * {code-spring-boot}/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2-file.xml[Log4j2 Console and File Appender] +====== [[features.logging.structured.ecs]]