Skip to content

Commit

Permalink
Update core/src/main/scala/com/evolutiongaming/catshelper/LogOf.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Max Lanin <max.m.lanin@gmail.com>
  • Loading branch information
rtar and sirmax authored Jan 15, 2025
1 parent f0cd7dc commit 41d442a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions core/src/main/scala/com/evolutiongaming/catshelper/LogOf.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@ import scala.reflect.ClassTag
*
* Then a typical example would be:
* {{{
* class UserService[F[_]: Monad](log: Log[F]) {
*
* def create(user: User): F[Unit] =
* for {
* _ <- log.info(s"Creating user...")
* _ <- ...
* } yield ()
*
* }
*
* object UserService {
*
* def of[F[_]: LogOf]: F[UserService[F]] =
Expand All @@ -46,6 +36,16 @@ import scala.reflect.ClassTag
* } yield service
*
* }
*
* class UserService[F[_]: Monad](log: Log[F]) {
*
* def create(user: User): F[Unit] =
* for {
* _ <- log.info(s"Creating user...")
* _ <- ...
* } yield ()
*
* }
* }}}
*
* The expected output, depending on the logging configuration, would be:
Expand Down

0 comments on commit 41d442a

Please sign in to comment.