Skip to content
Advertisement

Tag: logstash-logback-encoder

SLF4J/Java logging: Is it possible to add log arguments automatically?

Introduction We’re using SLF4J in combination with Logback in several Spring (Boot) applications and recently started using the logstash-logback-encoder to implement structured logging. As we also still have to support plain text logs, we wondered whether it was possible to append arguments automatically to log messages without having to add them manually to the message using the {} markers. Example

Advertisement