I would like to add an appender like below to sling.
The idea is to use structured logging for simpler ingestion and the ability
to easily add markers and MDC key/value pairs.

Did anyone try this before? The issue here is that I need special classes
for encoder and decorator that are not part of logback core.


    <appender name="jsonConsole"
class="ch.qos.logback.core.rolling.RollingFileAppender">
        <encoder class="net.logstash.logback.encoder.LogstashEncoder">
            <includeCallerData>true</includeCallerData>
            <jsonGeneratorDecorator
class="net.logstash.logback.decorate.CompositeJsonGeneratorDecorator">
            </jsonGeneratorDecorator>
        </encoder>
    </appender>


Christian

Reply via email to