Add a option for rotating logs