Hi,
I'm currently evaluating Sentry via Logback as a replacement for SMTPAppender. SentryAppender works quite well so far however I'm missing one feature from SMTPAppender.
SMTPAppender supports sending the last X log messages (e.g. INFO logs) via defining cyclicBufferTracker. It's also possible to filter those log messages via discriminator e.g. by providing the current username via MDC.
See this example config:
<appender name="mail" class="ch.qos.logback.classic.net.SMTPAppender">
<smtpHost>***</smtpHost>
<username>***</username>
<password>***</password>
<to>***</to>
<from>***</from>
<subject>Oops, somethings went terribly wrong</subject>
<discriminator class="ch.qos.logback.classic.sift.MDCBasedDiscriminator">
<key>username</key>
<defaultValue>unknown</defaultValue>
</discriminator>
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%d %-15.15X{username} %5p %-40.40logger{39} : %m%n%ex</pattern>
</layout>
<cyclicBufferTracker class="ch.qos.logback.core.spi.CyclicBufferTracker">
<bufferSize>15</bufferSize>
</cyclicBufferTracker>
</appender>
I'd like to have similar capabilities for SentryAppender such that INFO and WARN logs are automatically converted to Sentry breadcrumbs.
Is this already possible in one way or another?
Thanks.
Benjamin
We don't support this yet, but I had the issue #450 created and it's high on my list.
This is interesting though, I'll have to see how they implemented it -- this will be good to compare to (since I just thought up the idea independently before).
Thanks for info. Looking forward to it. Hope the provided info will be
somewhat helpful for you to implement this feature.
Brett Hoerner notifications@github.com schrieb am Mi. 9. Aug. 2017 um
16:02:
We don't support this yet, but I had the issue #450
https://github.com/getsentry/sentry-java/issues/450 created and it's
high on my list.This is interesting though, I'll have to see how they implemented it --
this will be good to compare to (since I just thought up the idea
independently before).—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/getsentry/sentry-java/issues/485#issuecomment-321264160,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdmqVON6uj_XwIgGSyBm5lEFxRwwmBOks5sWbutgaJpZM4OxtcT
.
Is there any update on this issue or is it stale? this is much needed feature.