Error Logging REFACTORING

- This commit touches (almost) all classes.
- Changes the logging routine from ErrorLogger.WriteToErrorLog to
ErrorLogger.Error
- No other functional changes were made in this commit