Groovy script for log migration from 1.2 to 1.3 format