Fix logrotate issue.

logger is not being re-initialised after logrotate.