Skip to content

Commit 34ac045

Browse files
quaffwilkinsona
authored andcommitted
Document StructuredLoggingJsonMembersCustomizer constructor params
See gh-43314
1 parent 74d69d0 commit 34ac045

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/structured/StructuredLoggingJsonMembersCustomizer.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@
2525
* <p>
2626
* An implementation may be provided using the {@code logging.structured.json.customizer}
2727
* property.
28+
* <p>
29+
* {@code StructuredLoggingJsonMembersCustomizer} implementations may optionally take the
30+
* following constructor parameters:
31+
* <ul>
32+
* <li>{@link org.springframework.core.env.Environment} - The Spring
33+
* {@code Environment}.</li>
34+
* <li>{@link ch.qos.logback.classic.pattern.ThrowableProxyConverter} - The Logback
35+
* {@code ThrowableProxyConverter} (available only if Logback is using).</li>
36+
* </ul>
2837
*
2938
* @param <T> the type being written
3039
* @author Phillip Webb

0 commit comments

Comments
 (0)