Skip to content

Commit

Permalink
Update core/src/main/scala/com/evolutiongaming/catshelper/Log.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 41d442a commit e150b0b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/main/scala/com/evolutiongaming/catshelper/Log.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ import scala.collection.immutable.SortedMap
*
* Use [[LogOf]] to create the new instances of the class.
*
* The recommendation is to avoid passing `Log` instances implicitly as there
* could be multiple instances of `Log`, which could lead to confusion and
* log messages attributed to the wrong class, which leaked its own `Log`
* instances accidentally.
* Avoid passing `Log` instances implicitly. Passing implicit instances around could "leak" a logger
* into an unrelated code, and create a confusion with wrongly attributed log messages.
*
* @see [[LogOf]] for usage examples.
* @see [[https://slf4j.org/api/org/slf4j/Logger.html Logger]] for a typical
Expand Down

0 comments on commit e150b0b

Please sign in to comment.