Skip to content

Commit 0b298b0

Browse files
committed
chore(deps): Remove unused mobile-logstash-encoder
https://github.com/guardian/mobile-logstash-encoder hydrates logs with Stack, Stage, App markers before writing to Kinesis. This functionality is now covered by https://github.com/guardian/devx-logs so we can remove the dependency.
1 parent 2e3471a commit 0b298b0

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

.scala-steward.conf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,4 @@ updates.pin = [
3232

3333
# Pin Play framework to 2.9 until we've migrated the code from Akka to Pekko
3434
{ groupId = "com.typesafe.play", artifactId = "sbt-plugin", version = "2.9.1" },
35-
36-
# Pin logstash to 1.8 until we have bumped simple-configuration
37-
{ groupId = "com.gu", artifactId = "mobile-logstash-encoder", version = "1.1.8" },
3835
]

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ lazy val common = project
118118
"org.tpolecat" %% "doobie-specs2" % doobieVersion % Test,
119119
"org.tpolecat" %% "doobie-scalatest" % doobieVersion % Test,
120120
"org.tpolecat" %% "doobie-h2" % doobieVersion % Test,
121-
"com.gu" %% "mobile-logstash-encoder" % "1.1.8",
122121
"com.gu" %% "simple-configuration-ssm" % simpleConfigurationVersion,
123122
"org.postgresql" % "postgresql" % "42.7.7",
124123
"ch.qos.logback" % "logback-core" % logbackVersion,
125124
"ch.qos.logback" % "logback-classic" % logbackVersion,
125+
"net.logstash.logback" % "logstash-logback-encoder" % "8.1"
126126
),
127127
fork := true,
128128
startDynamoDBLocal := startDynamoDBLocal.dependsOn(Test / compile).value,

notification/conf/logback.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<maxHistory>30</maxHistory>
1111
</rollingPolicy>
1212

13-
<encoder class="com.gu.mobile.logback.MobileLogstashEncoder">
14-
<defaultAppName>notifications</defaultAppName>
13+
<encoder>
14+
<pattern>%date [%thread] %-5level {%mdc} %logger{36}:%L - %msg%n%xException{15}</pattern>
1515
</encoder>
1616
</appender>
1717

registration/conf/logback.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<maxHistory>30</maxHistory>
1111
</rollingPolicy>
1212

13-
<encoder class="com.gu.mobile.logback.MobileLogstashEncoder">
14-
<defaultAppName>notifications</defaultAppName>
13+
<encoder>
14+
<pattern>%date [%thread] %-5level {%mdc} %logger{36}:%L - %msg%n%xException{15}</pattern>
1515
</encoder>
1616
</appender>
1717

report/conf/logback.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<maxHistory>30</maxHistory>
1313
</rollingPolicy>
1414

15-
<encoder class="com.gu.mobile.logback.MobileLogstashEncoder">
16-
<defaultAppName>notifications</defaultAppName>
15+
<encoder>
16+
<pattern>%date [%thread] %-5level {%mdc} %logger{36}:%L - %msg%n%xException{15}</pattern>
1717
</encoder>
1818
</appender>
1919

0 commit comments

Comments
 (0)