log all errors to log file