Create logparser.groovy

Bulk of the code for Logparser