log refactoring
DRY parse
Merge pull request #2 from sergeychipiga/refactor-log

Refactor log