On this pagecore.logger.errorHome > @medplum/core > Logger > error Logger.error() method Signature: error(msg: string, data?: Record<string, any> | Error): void; Parameters ParameterTypeDescriptionmsgstringdataRecord<string, any> | Error(Optional) Returns: void