diff --git a/core/shared/src/main/scala/zio/logging/package.scala b/core/shared/src/main/scala/zio/logging/package.scala index e6ee33e2..fe84a22f 100644 --- a/core/shared/src/main/scala/zio/logging/package.scala +++ b/core/shared/src/main/scala/zio/logging/package.scala @@ -100,6 +100,11 @@ package object logging { } yield () } + val removeDefaultLoggers: ZLayer[Any, Nothing, Unit] = { + implicit val trace = Trace.empty + ZLayer.scoped(FiberRef.currentLoggers.locallyScopedWith(_ -- Runtime.defaultLoggers)) + } + private def makeStringLogger( destination: Path, format: LogFormat,