How does SLF4J support structured logging
问题 Anyone knows how structured logging is usually implemented with SLF4J? Is there any open source already out there handling this? 回答1: Slf4j added support for structured logging (and fluent API) with v2.0.0 (Alpha as of Oct 2019): http://www.slf4j.org/api/org/slf4j/event/KeyValuePair.html http://www.slf4j.org/api/org/slf4j/event/LoggingEvent.html http://www.slf4j.org/apidocs/org/slf4j/spi/LoggingEventBuilder.html int newT = 15; int oldT = 16; // using classical API logger.debug("oldT={} newT={