Fix logrotate issue.

logger is now re-initialised after logrotate.