Fix logrotate issue.

logger is not being re-initialised after logrotate.
Merge pull request #69 from bpwook/logrotate_fix

Fix logrotate issue.