refactor logger rollover