The accepted answer (enable logging with log4j) is mostly correct, but I had a little problem with wired logging for the HTTP constructor in my Groovy script. For some reason, deleting the log4j.xml file in my $ GROOVY_HOME / conf directory does not work. Ultimately, I just had to add the appropriate logging options to the Groovy team when I ran it.
groovy -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.showdatetime=true -Dorg.apache.commons.logging.simplelog.log.org.apache.http=DEBUG myscript.groovy
jonnybot
source share