Skip to content

Console-shaped sink the SDK writes diagnostics to, exposed as SDKContext.logger. The default implementation forwards warn and error to the matching console method with an [AnvilSDK] prefix; info, log, and debug are no-ops by default.

Properties

debug

debug: (...args) => void;

Logs a debug message.

Parameters

ParameterTypeDescription
…argsunknown[]Arguments to log.

Returns

void


error

error: (...args) => void;

Logs an error message.

Parameters

ParameterTypeDescription
…argsunknown[]Arguments to log.

Returns

void


info

info: (...args) => void;

Logs an informational message.

Parameters

ParameterTypeDescription
…argsunknown[]Arguments to log.

Returns

void


log

log: (...args) => void;

Logs a general message.

Parameters

ParameterTypeDescription
…argsunknown[]Arguments to log.

Returns

void


warn

warn: (...args) => void;

Logs a warning message.

Parameters

ParameterTypeDescription
…argsunknown[]Arguments to log.

Returns

void