diff --git a/modules/logging/scribe/src/main/scala/docspell/logging/impl/ScribeConfigure.scala b/modules/logging/scribe/src/main/scala/docspell/logging/impl/ScribeConfigure.scala index d0324ef5..ace08881 100644 --- a/modules/logging/scribe/src/main/scala/docspell/logging/impl/ScribeConfigure.scala +++ b/modules/logging/scribe/src/main/scala/docspell/logging/impl/ScribeConfigure.scala @@ -44,16 +44,18 @@ object ScribeConfigure { _.clearHandlers(), _.withMinimumLevel(ScribeWrapper.convertLevel(cfg.minimumLevel)), l => - cfg.format match { - case Format.Fancy => - l.withHandler(formatter = Formatter.enhanced, writer = SystemOutWriter) - case Format.Plain => - l.withHandler(formatter = Formatter.classic, writer = SystemOutWriter) - case Format.Json => - l.withHandler(writer = JsonWriter(SystemOutWriter)) - case Format.Logfmt => - l.withHandler(writer = LogfmtWriter(SystemOutWriter)) - }, + if (logger.id == scribe.Logger.RootId) { + cfg.format match { + case Format.Fancy => + l.withHandler(formatter = Formatter.default, writer = SystemOutWriter) + case Format.Plain => + l.withHandler(formatter = Formatter.classic, writer = SystemOutWriter) + case Format.Json => + l.withHandler(writer = JsonWriter(SystemOutWriter)) + case Format.Logfmt => + l.withHandler(writer = LogfmtWriter(SystemOutWriter)) + } + } else l, _.replace() ) diff --git a/project/TestSettings.scala b/project/TestSettings.scala index cf8909e1..67073f6f 100644 --- a/project/TestSettings.scala +++ b/project/TestSettings.scala @@ -30,7 +30,7 @@ object TestSettingsPlugin extends AutoPlugin { val testSettings = Seq( libraryDependencies ++= inTest(Dependencies.munit, Dependencies.scribe), - testFrameworks += new TestFramework("munit.Framework") + testFrameworks += TestFrameworks.MUnit ) }