Skip to content

Commit

Permalink
Merge pull request #43314 from quaff
Browse files Browse the repository at this point in the history
* gh-43314:
  Polish "Document StructuredLoggingJsonMembersCustomizer constructor params"
  Document StructuredLoggingJsonMembersCustomizer constructor params

Closes gh-43314
  • Loading branch information
wilkinsona committed Nov 28, 2024
2 parents d3c5a4b + 15109b2 commit b5feada
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,28 @@

package org.springframework.boot.logging.structured;

import ch.qos.logback.classic.pattern.ThrowableProxyConverter;

import org.springframework.boot.json.JsonWriter;
import org.springframework.boot.json.JsonWriter.Members;
import org.springframework.core.env.Environment;

/**
* Customer that can be injected into a {@link StructuredLogFormatter} implementations to
* Customizer that can be injected into {@link StructuredLogFormatter} implementations to
* customize {@link JsonWriter} {@link Members}.
* <p>
* An implementation may be provided using the {@code logging.structured.json.customizer}
* property.
* <p>
* Implementing classes can declare the following parameter types in the constructor:
* <ul>
* <li>{@link Environment}</li>
* </ul>
* When using Logback, implementing classes can also use the following parameter types in
* the constructor:
* <ul>
* <li>{@link ThrowableProxyConverter}</li>
* </ul>
*
* @param <T> the type being written
* @author Phillip Webb
Expand Down

0 comments on commit b5feada

Please sign in to comment.