I am using Sentry in java. The logback.xml is updated as
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>msg</pattern> </encoder> </appender> <appender name="Sentry" class="com.getsentry.raven.logback.SentryAppender"> <dsn>https://xxx:email@example.com/xxx</dsn> </appender> <root level="error"> <appender-ref ref="Sentry"/> <appender-ref ref="STDOUT"/> </root>
The issue with the above setting is that when we use both the appenders in
<root> the sentry will not be logged and no error is mailed to the sentry. If the
<appender-ref ref="STDOUT"/> is commented then the sentry works as expected - The logs are sent to the sentry and we have the mail sent with the log.
Can I get any work around or please point out the mistake.