Skip to content

Commit

Permalink
Fix missing dependencies for json logging and conditional logging (#97)
Browse files Browse the repository at this point in the history
* issue #95: fix logging bug 🚑

* issue #95: fix omission 🚑
  • Loading branch information
Tochemey authored Sep 16, 2020
1 parent fbee231 commit 6ff1b58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/service/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</appender>

<!-- Let us define some env vars -->
<variable name="NAMELY_ENV" value="${NAMELY_ENV:-dev}"/>
<variable name="DEPLOYMENT_ENV" value="${DEPLOYMENT_ENV:-dev}"/>
<variable name="LOG_LEVEL" value="${LOG_LEVEL:-DEBUG}"/>

<appender name="ASYNCJSON" class="net.logstash.logback.appender.LoggingEventAsyncDisruptorAppender">
Expand Down Expand Up @@ -43,8 +43,8 @@
<!-- Turn down Slick noise-->
<logger name="scala.slick" level="ERROR"/>

<variable name="NAMELY_ENV" value="${NAMELY_ENV:-dev}"/>
<if condition='p("NAMELY_ENV").equals("dev")'>
<variable name="DEPLOYMENT_ENV" value="${DEPLOYMENT_ENV:-dev}"/>
<if condition='p("DEPLOYMENT_ENV").equals("dev")'>
<then>
<root level="${LOG_LEVEL}">
<appender-ref ref="STDOUT"/>
Expand Down
2 changes: 2 additions & 0 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ object BuildSettings extends AutoPlugin {
Dependencies.Compile.KamonBundle,
Dependencies.Compile.KamonJaeger,
Dependencies.Compile.KamonPrometheus,
Dependencies.Compile.Janino,
Dependencies.Compile.LogstashLogback,
Dependencies.Runtime.LagompbRuntime,
Dependencies.Test.AkkaGrpcTestkit
),
Expand Down
4 changes: 4 additions & 0 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ object Dependencies {
val KamonAkkaGrpcVersion: String = "0.0.9"
val AkkaVersion: String = "2.6.9"
val KamonVersion: String = "2.1.6"
val JaninoVersion: String = "3.1.2"
val LogstashLogbackVersion = "6.3"
}

object Compile {
Expand All @@ -22,6 +24,8 @@ object Dependencies {
val KanelaAgent: ModuleID = "io.kamon" % "kanela-agent" % Versions.KanelaAgentVersion
val KamonAkkaGrpc: ModuleID =
("com.github.nezasa" %% "kamon-akka-grpc" % Versions.KamonAkkaGrpcVersion).intransitive()
val Janino = "org.codehaus.janino" % "janino" % Versions.JaninoVersion
val LogstashLogback = "net.logstash.logback" % "logstash-logback-encoder" % Versions.LogstashLogbackVersion
}

object Runtime {
Expand Down

0 comments on commit 6ff1b58

Please sign in to comment.