LazyLogging vs StrictLogging

I use scala -logging. There are two classes LazyLogging and StrictLogging. I see that the difference between the two is that LazyLogging is initialized lazily. What is the purpose of this. When should I use one after the other and why?

+4
source share
1 answer

Best to use StrictLogging. LazyLogging if you want to delay Logger initialization.

+3
source

Source: https://habr.com/ru/post/1664157/


All Articles