@itwin/core-i18n 4.5.0-dev.4 → 4.5.0-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19411,15 +19411,12 @@ class Logger {
|
|
|
19411
19411
|
const stack = Logger.logExceptionCallstacks ? `\n${_BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorStack(err)}` : "";
|
|
19412
19412
|
return _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMessage(err) + stack;
|
|
19413
19413
|
}
|
|
19414
|
-
/** Log the specified exception. The special "ExceptionType" property will be added as metadata
|
|
19415
|
-
* in addition to any other metadata that may be supplied by the caller, unless the
|
|
19416
|
-
* metadata supplied by the caller already includes this property.
|
|
19414
|
+
/** Log the specified exception. The special "ExceptionType" property will be added as metadata.
|
|
19417
19415
|
* @param category The category of the message.
|
|
19418
19416
|
* @param err The exception object.
|
|
19419
19417
|
* @param log The logger output function to use - defaults to Logger.logError
|
|
19420
|
-
* @param metaData Optional data for the message
|
|
19421
19418
|
*/
|
|
19422
|
-
static logException(category, err, log = (_category, message) => Logger.logError(_category, message)) {
|
|
19419
|
+
static logException(category, err, log = (_category, message, metaData) => Logger.logError(_category, message, metaData)) {
|
|
19423
19420
|
log(category, Logger.getExceptionMessage(err), () => {
|
|
19424
19421
|
return { ..._BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMetadata(err), exceptionType: err.constructor.name };
|
|
19425
19422
|
});
|