diff --git a/build.sbt b/build.sbt index 3ae3b35..eff19fe 100644 --- a/build.sbt +++ b/build.sbt @@ -14,6 +14,7 @@ lazy val root = (project in file(".")) s"-Dpidfile.path=/dev/null", s"-J-Dlogs.home=/var/log/${packageName.value}", ), + Test / javaOptions += "-Dlogback.configurationFile=logback-test.xml", libraryDependencies ++= Seq( "net.logstash.logback" % "logstash-logback-encoder" % "7.4", ("com.gu" %% "simple-configuration-ssm" % "1.6.4").cross(CrossVersion.for3Use2_13), diff --git a/test/resources/logback-test.xml b/test/resources/logback-test.xml new file mode 100644 index 0000000..84a9bce --- /dev/null +++ b/test/resources/logback-test.xml @@ -0,0 +1,16 @@ + + + + + + UTF-8 + %d{yyyy-MM-dd HH:mm:ss} %highlight(%-5level) %cyan(%logger{36}) %magenta(%X{pekkoSource}) %msg%n + + + + + + + + +