add errorlog support
Merge pull request #2 from yo2oneoo/master

add errorlog support