logException MethodStatic

Log the specified exception. The special "ExceptionType" property will be added as metadata, in addition to any other metadata that may be supplied by the caller, unless the metadata supplied by the caller already includes this property.

logException(category: string, err: Error, log: LogFunction = Logger.logError, metaData?: GetMetaDataFunction): void

Parameter Type Description
category string The category of the message.
err Error The exception object.
log LogFunction The logger output function to use - defaults to Logger.logError
GetMetaDataFunction Optional data for the message

Defined in

Last Updated: 03 June, 2019