logError MethodStatic
logError(category, message, metaData?)
Log the specified message to the error stream.
logError(category: string, message: string, metaData?: LoggingMetaData): void
| Parameter | Type | Description |
|---|---|---|
| category | string | The category of the message |
| string | Message to log | |
| metaData | LoggingMetaData | Optional data for the message |
Returns - void
logError(category, error, metaData?)
Log the specified error to the error stream.
logError(category: string, error: unknown, metaData?: LoggingMetaData): void
@note For legacy BentleyError exceptions, the special "exceptionType" property will be added as metadata. Otherwise, all enumerable members of the exception are logged as metadata.
| Parameter | Type | Description |
|---|---|---|
| category | string | The category of the message |
| error | unknown | Error to log |
| metaData | LoggingMetaData | Optional data for the message |
Returns - void
Defined in
- core/bentley/src/Logger.ts Line 266
Last Updated: 12 March, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.