fix and improve groovy logging