added logfile support
Merge pull request #43 from jahntheman/master

added logfile support