Refactor ErrorLogService