Updated logging to auto rotate log file