File tree 1 file changed +11
-7
lines changed
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/structured
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .boot .logging .structured ;
18
18
19
+ import ch .qos .logback .classic .pattern .ThrowableProxyConverter ;
20
+
19
21
import org .springframework .boot .json .JsonWriter ;
20
22
import org .springframework .boot .json .JsonWriter .Members ;
23
+ import org .springframework .core .env .Environment ;
21
24
22
25
/**
23
- * Customer that can be injected into a {@link StructuredLogFormatter} implementations to
26
+ * Customizer that can be injected into {@link StructuredLogFormatter} implementations to
24
27
* customize {@link JsonWriter} {@link Members}.
25
28
* <p>
26
29
* An implementation may be provided using the {@code logging.structured.json.customizer}
27
30
* property.
28
31
* <p>
29
- * {@code StructuredLoggingJsonMembersCustomizer} implementations may optionally take the
30
- * following constructor parameters:
32
+ * Implementing classes can declare the following parameter types in the constructor:
33
+ * <ul>
34
+ * <li>{@link Environment}</li>
35
+ * </ul>
36
+ * When using Logback, implementing classes can also use the following parameter types in
37
+ * the constructor:
31
38
* <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>
39
+ * <li>{@link ThrowableProxyConverter}</li>
36
40
* </ul>
37
41
*
38
42
* @param <T> the type being written
You can’t perform that action at this time.
0 commit comments