[Reviewer: Andy] Add logging and logrotation