Support custom appenders with structured logging #44235
Labels
for: team-attention
An issue we'd like other members of the team to review
status: waiting-for-triage
An issue we've not yet triaged
At my company we currently maintain a custom starter that support logging to console, file, a kafka topic and an http endpoint. However, the current setup heavily relies on custom configuration via
logback-spring.xml
and also uses if conditions which requires janino and thus is not compatible with GraalVM native image. With the latest spring boot release, we successfully switched our console and file logging over to the new structured logging feature but still have to maintain our "old" starter for logging to kafka and an http endpoint. Our goal is to have full compatability with GraalVM in the future, so we're actively looking for solutions here.Would it be possible to allow users of spring to define additional appenders for structured logging in DefaultLogbackConfiguration#apply so that we can basically re-use the whole formatting logic or would you recommend a different approach?
Probably related to:
The text was updated successfully, but these errors were encountered: