Logging
Logging is a prevalent activity that almost all non-trivial applications do. Logging calls are quite frequent, hence it is important to make sure our logging configuration is tuned well for performance. If you are not familiar with logging systems (especially on the JVM), you may want to take some time to get familiar with those first. We will cover the use of clojure/tools.logging
, SLF4J
and LogBack
libraries (as a combination) for logging, and look into how to make them perform well:
Clojure/tools.logging https://github.com/clojure/tools.logging
SLF4J: http://www.slf4j.org/
LogBack: http://logback.qos.ch/
Why SLF4J/LogBack?
Besides SLF4J/LogBack, there are several logging libraries to choose from in the Clojure application, for example Timbre, Log4j and java.util.logging. While there is nothing wrong with these libraries, we are often constrained into choosing something that covers most other third-party libraries (also including Java libraries) in our applications for logging...