Adding support for custom patterns when parsing logs