diff --git a/README.md b/README.md index 6e69709..742ba5e 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,18 @@ these traits are mixed: ```scala class LazyLoggingExample extends LazyLogging { - logger.debug("This is very convenient ;-)") + logger.debug("This is Lazy Logging ;-)") + + logger.whenDebugEnabled { + println("This would only execute when the debug level is enabled.") + (1 to 10).foreach(x => println("Scala logging is great!")) + } +} +``` + +```scala +class StrictLoggingExample extends StrictLogging { + logger.debug("This is Strict Logging ;-)") logger.whenDebugEnabled { println("This would only execute when the debug level is enabled.")