Move file logging to production mode only