We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c5ce8 commit 5b188e6Copy full SHA for 5b188e6
README.md
@@ -75,6 +75,8 @@ val logger = Logger[MyClass]
75
The `LazyLogging` and `StrictLogging` traits from the `com.typesafe.scalalogging` package define the `logger` member as
76
a lazy or strict value respectively, whereas the `AnyLogging` trait defines an abstract `logger`.
77
78
+It depends on the individual use case which trait to use. However, we have defined some scenarios where you can use these traits:
79
+
80
- Use `LazyLogging` if you are creating lots of objects with this trait repetitively.
81
- Use `StrictLogging` pretty much by default, especially if the class is a singleton, or you know the log methods will always be invoked.
82
- Use `AnyLogging` when writing some trait which needs access to any logger without deciding on a specific implementation.
0 commit comments