Add possibility to log all errors to file.