error

open override fun error(message: String, metadata: Array<Metadata>)(source)

Logs an error message with optional metadata.

Parameters

message

The error message to be logged.

metadata

An array of metadata objects to be associated with the error message (optional).


open override fun error(error: Error, metadata: Array<Metadata>)(source)

Logs an error with optional metadata.

Parameters

error

The error object to be logged.

metadata

An array of metadata objects associated with the error (optional).