Skip to content

Commit ac322f8

Browse files
Configure logback in new modules
1 parent 734359f commit ac322f8

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Diff for: blaze-core/src/test/resources/logback-test.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<configuration>
2+
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<!-- encoders are assigned the type
5+
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
6+
<encoder>
7+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n${LOGBACK_EXCEPTION_PATTERN:-%throwable}</pattern>
8+
</encoder>
9+
</appender>
10+
11+
<!-- Configurable via the env variable -->
12+
<root level="${LOGBACK_ROOT_LEVEL:-INFO}">
13+
<appender-ref ref="STDOUT" />
14+
</root>
15+
</configuration>

Diff for: build.sbt

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ lazy val blazeCore = Project("http4s-blaze-core", file("blaze-core"))
135135
tlMimaPreviousVersions ++= (0 to 11).map(y => s"0.23.$y").toSet,
136136
libraryDependencies ++= Seq(
137137
"org.http4s" %% "http4s-core" % http4sVersion,
138-
"org.typelevel" %% "munit-cats-effect-3" % munitCatsEffectVersion % Test
138+
"org.typelevel" %% "munit-cats-effect-3" % munitCatsEffectVersion % Test,
139+
logbackClassic % Test
139140
),
140141
mimaBinaryIssueFilters := {
141142
if (tlIsScala3.value)

0 commit comments

Comments
 (0)