@groovy.util.logging.Log
class MyClass {
def doSomething(parm) {
try {
if (parm != null && parm instanceof String) {
return parm*2
}
} catch (IOException e) {
throw e
}
}
private def logError(Throwable e) {
log.error(e.message, e)
}
}