Skip to content

Commit

Permalink
server: Set up sentry-logback
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexITC committed Oct 28, 2018
1 parent 64a0946 commit 875be83
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/build.sbt
Expand Up @@ -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"
Expand Down
7 changes: 7 additions & 0 deletions server/conf/logback.xml
Expand Up @@ -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>
Expand All @@ -46,6 +52,7 @@
<root level="INFO">
<appender-ref ref="ASYNCFILE" />
<appender-ref ref="ASYNCSTDOUT" />
<appender-ref ref="SENTRY" />
</root>

</configuration>
1 change: 1 addition & 0 deletions server/conf/sentry.properties
@@ -0,0 +1 @@
stacktrace.app.packages=com.alexitc

0 comments on commit 875be83

Please sign in to comment.