Browse Source

server: Set up sentry-logback

prometheus-integration
Alexis Hernandez 6 years ago
parent
commit
875be83564
  1. 1
      server/build.sbt
  2. 7
      server/conf/logback.xml
  3. 1
      server/conf/sentry.properties

1
server/build.sbt

@ -41,6 +41,7 @@ libraryDependencies += "org.postgresql" % "postgresql" % "9.4.1212"
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.25"
libraryDependencies += "ch.qos.logback" % "logback-core" % "1.2.3"
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3"
libraryDependencies += "io.sentry" % "sentry-logback" % "1.7.13"
libraryDependencies ++= Seq(
"com.beachape" %% "enumeratum" % "1.5.13"

7
server/conf/logback.xml

@ -26,6 +26,12 @@
</encoder>
</appender>
<appender name="SENTRY" class="io.sentry.logback.SentryAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>WARN</level>
</filter>
</appender>
<appender name="ASYNCFILE" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="FILE" />
</appender>
@ -46,6 +52,7 @@
<root level="INFO">
<appender-ref ref="ASYNCFILE" />
<appender-ref ref="ASYNCSTDOUT" />
<appender-ref ref="SENTRY" />
</root>
</configuration>

1
server/conf/sentry.properties

@ -0,0 +1 @@
stacktrace.app.packages=com.alexitc
Loading…
Cancel
Save