Adding support for custom patterns when parsing logs

Congratulations for you job. I added some support for custom pattern when parsing logs. Check it out.