Logging with groovy
Logging with groovy is as simple as this.
def log = GroovyLog.newInstance("LogExample")
log.sayHello("Hello World")
log.sayGoodbye("Goodbye World")
Which will print to stdout the following.
[LogExample:sayHello] Hello World [LogExample:sayGoodbye] Goodbye World