StructuredLogFormatter Type — spring-boot Architecture
Architecture documentation for the StructuredLogFormatter type/interface in StructuredLogFormatter.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/structured/StructuredLogFormatter.java lines 45–65
@FunctionalInterface
public interface StructuredLogFormatter<E> {
/**
* Formats the given log event to a String.
* @param event the log event to write
* @return the formatted log event String
*/
String format(E event);
/**
* Formats the given log event to a byte array.
* @param event the log event to write
* @param charset the charset
* @return the formatted log event bytes
*/
default byte[] formatAsBytes(E event, Charset charset) {
return format(event).getBytes(charset);
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free