sentry-logback in spring boot application
Added sentry appender in
<appender name="SENTRY" class="io.sentry.logback.SentryAppender"> <minLevel>WARN</minLevel> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>WARN</level> </filter> </appender>
Sentry properties are stored in
sentry.properties file under
If the logger name is same as classpath i.e.
private static final Logger LOGGER = LoggerFactory.getLogger(MyDemoService.class);
then the logs are not pushed to sentry server.
If any other string is passed as logger name then logs are reported to sentry server, strange…!
I’ve tried to put a debugger point in
io.sentry.connection.HttpConnection.doSent(), but the event is never reach there if logger name is same as classpath.
Anyone have any idea why this is happening, I don’t want to change logger name throughout the project just for this reason.
sentry-logback - 1.7.16
jcl-over-slf4j - 1.7.20
logback-classic - 1.1.7