Skip to content

Commit

Permalink
Merge pull request #344 from bplommer/NoOpLogger-apply
Browse files Browse the repository at this point in the history
add apply method to NoOpLogger
  • Loading branch information
lorandszakacs authored Feb 10, 2021
2 parents 88219e7 + e2a1bfe commit 0d9f337
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import cats.Applicative
import org.typelevel.log4cats.SelfAwareStructuredLogger

object NoOpLogger {
def apply[F[_]: Applicative]: SelfAwareStructuredLogger[F] = impl[F]
def impl[F[_]: Applicative]: SelfAwareStructuredLogger[F] = new SelfAwareStructuredLogger[F] {

val no = Applicative[F].pure(false)
Expand Down

0 comments on commit 0d9f337

Please sign in to comment.