Skip to content

Commit

Permalink
Merge pull request #704 from RafalSumislawski/configure-logback-in-ne…
Browse files Browse the repository at this point in the history
…w-modules

Configure logback in new modules
  • Loading branch information
danicheg authored Jun 26, 2022
2 parents 734359f + ac322f8 commit 28cf486
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions blaze-core/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n${LOGBACK_EXCEPTION_PATTERN:-%throwable}</pattern>
</encoder>
</appender>

<!-- Configurable via the env variable -->
<root level="${LOGBACK_ROOT_LEVEL:-INFO}">
<appender-ref ref="STDOUT" />
</root>
</configuration>
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ lazy val blazeCore = Project("http4s-blaze-core", file("blaze-core"))
tlMimaPreviousVersions ++= (0 to 11).map(y => s"0.23.$y").toSet,
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-core" % http4sVersion,
"org.typelevel" %% "munit-cats-effect-3" % munitCatsEffectVersion % Test
"org.typelevel" %% "munit-cats-effect-3" % munitCatsEffectVersion % Test,
logbackClassic % Test
),
mimaBinaryIssueFilters := {
if (tlIsScala3.value)
Expand Down

0 comments on commit 28cf486

Please sign in to comment.