Hi Christian,

On Wed, 2024-04-10 at 10:14 +0200, Christian Schneider wrote:
> 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.
> 

I did not try this. The docs indicate though that you can register
Appenders as OSGi services [1], perhaps you can create a small bundle
that has a such a service and register it?

Thanks,
Robert


[1]:
https://sling.apache.org/documentation/development/logging.html#appenders-as-osgi-services-1

Reply via email to