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.
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 […]
On my TODO-list ist still a big bullet-point called „aspect-oriented programming“. So here’s a small step into that topic.