addDefaultErrorReportLogger function

Add the default error report logger