With version 1.8 a great feature got into the release of Groovy: the groovy.util.logging.Slf4j-annotation. With that annotation you can create the logging facade which can be used then at runtime with different logging implementations. In this example I will use „simple logging“, „log4j“ and „logback“ as implementations.
Last week I was asked by a colleague what happens, if a log4j appender takes much time for doing its work. This actually was a good question as the appenders in log4j are all working synchronously. In case of my last example with a jdbc appender that means, if the insert statement takes much time, […]
Logging is great. No question, every one is happy about having logfiles to follow application’s flow. But in case you are confronted with a large bunch of logfiles, let’s say thousands of requests/responses of your adapter, you need an option for fast filtering or better: querying. So it would be nice to have the logged […]
When running large applications you definitely will have a big amount of logging related code. With log4j Java developers can extremely simplify the adding of log outputs via creating a static member that gets the logger and simply put something like „logger.info(…)“ into the relevant locations of some methods. That’s where the main work of […]
I just wanted to do a small excourse into great log4j2-logging-framework, which, by the way, still is „only“ a release-candidate 2.0-rc, but brings a lot of features most developers are missing in log4j. I decided to create a tiny generator that can generate a ton of logs. Maybe next weeks or months I will have […]