Option to log errors to file if environment is set as development