Skip to content

@camera.ui/sdk / types / LoggerService

Interface: LoggerService

Defined in: types.ts:17

Logger interface used throughout the SDK.

Each method accepts an arbitrary list of arguments (joined with spaces by the host) and emits a log entry at the corresponding severity:

  • log: general informational message (default level).
  • info: same as log; informational message.
  • warn: potential problem that does not stop execution.
  • error: a failure or unexpected condition.
  • success: confirmation of a completed operation.
  • debug: diagnostic detail; only emitted when debug logging is enabled.
  • trace: very fine-grained diagnostic detail; only emitted when trace logging is enabled.
  • attention: highlighted message that should stand out in the log stream.

Properties

attention

attention: (...args) => void

Defined in: types.ts:31

Log an attention message (highlighted message that should stand out in the log stream).

Parameters

args

...any[]

Returns

void


debug

debug: (...args) => void

Defined in: types.ts:27

Log a debug message (diagnostic detail; only emitted when debug logging is enabled).

Parameters

args

...any[]

Returns

void


error

error: (...args) => void

Defined in: types.ts:21

Log an error message.

Parameters

args

...any[]

Returns

void


log

log: (...args) => void

Defined in: types.ts:19

Log an info message.

Parameters

args

...any[]

Returns

void


success

success: (...args) => void

Defined in: types.ts:25

Log a success message (confirmation of a completed operation).

Parameters

args

...any[]

Returns

void


trace

trace: (...args) => void

Defined in: types.ts:29

Log a trace message (very fine-grained detail; only emitted when trace logging is enabled).

Parameters

args

...any[]

Returns

void


warn

warn: (...args) => void

Defined in: types.ts:23

Log a warning message.

Parameters

args

...any[]

Returns

void