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 7442b15 commit 1ea782cCopy full SHA for 1ea782c
README.md
@@ -87,6 +87,17 @@ class LazyLoggingExample extends LazyLogging {
87
}
88
```
89
90
+```scala
91
+class StrictLoggingExample extends StrictLogging {
92
+ logger.debug("This is Strict Logging ;-)")
93
+
94
+ logger.whenDebugEnabled {
95
+ println("This would only execute when the debug level is enabled.")
96
+ (1 to 10).foreach(x => println("Scala logging is great!"))
97
+ }
98
+}
99
+```
100
101
```scala
102
class AnyLoggingExample extends AnyLogging {
103
override protected val logger: Logger = Logger("name")
0 commit comments