File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,12 @@ val logger = Logger[MyClass]
67
67
```
68
68
69
69
The ` LazyLogging ` and ` StrictLogging ` traits from the ` com.typesafe.scalalogging ` package define the ` logger ` member as
70
- a lazy or strict value respectively. In both cases the underlying SLF4J logger is named according to the class into which
70
+ a lazy or strict value respectively.
71
+
72
+ - Use ` LazyLogging ` if you are creating lots of objects with this trait repetitively.
73
+ - Use ` StrictLogging ` pretty much by default, especially if the class is a singleton, or you know the log methods will always be invoked.
74
+
75
+ In both cases the underlying SLF4J logger is named according to the class into which
71
76
these traits are mixed:
72
77
73
78
``` scala
You can’t perform that action at this time.
0 commit comments