title: Sentry for logging in Spring
body: <p>I use Sentry (on premise) for our logging. Recently I started moving to the Spring framework, I am not able to get the logs hit Sentry servers. I tried using <code>log4j</code> and <code>logger (slf4j)</code>. In both cases I was not able to make any progress. My assumption is that since I use <code>spring-starter</code> maven dependency, it includes <code>logger</code> by default, while all documentation on Sentry + Java mentions using <code>raven</code>. Probably my log configurations are not read because of this. 
  Can anybody tell me how can I get sentry working on my Spring project?</p>
  
  <p>EDIT:
  Here is my <code>logback.xml</code> which is in classpath.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;appender name="Sentry" class="net.kencochrane.raven.logback.SentryAppender"&gt;
          &lt;dsn&gt;
              http://xxx@example.com/sentry/2
          &lt;/dsn&gt;
      &lt;/appender&gt;
  
      &lt;root level="error"&gt;
          &lt;appender-ref ref="Sentry" /&gt;
      &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>