I have a log configuration in which there is an application with a threshold filter:
<appender name="SYSLOG" class="ch.qos.logback.classic.net.SyslogAppender"> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>INFO</level> </filter> ... </appender>
This ensures that only information above is logged in syslog (warning, error). However, one of the third-party libraries that we use logs a specific event in DEBUG, and I would like to register this event in syslog. The first approach I had in mind was to try to reassign the log level in the logger, but not sure if this is possible? Sort of:
<logger name="akka.some.Thing" level="DEBUG" logAs="INFO"> <appender-ref ref="SYSLOG" /> </logger>
obviously, the "logAs" parameter does not exist, so I cannot do this. What would be the best approach to putting akka.some.Thing into the SYSLOG application, leaving the filter in place for other registrars?
Another approach would be to create a second append called SYSLOG2 that has no filter in place and set up a specific logger to use it, but wondered if there is a way to configure logback with just one SYSLOG added ...
Thanks,
source share