prepared logger task for file rotation