modified to rotate production.log