added log rotation.
Merge pull request #71 from kodamaa/logrotate

added log rotation.