Skip to main content

@novorender/web_app / Logger

Interface: Logger

An interface for reporting status updates, progress and errors to UI.

Remarks

Loggers report updates to their associated object, e.g. an offline context or an individual offline scene.

Methods

error()

error(message): void

Log an error message.

Parameters

ParameterType
messageOfflineErrorMessage

Returns

void

Defined in

@novorender/offline/logger.ts:24


info()?

optional info(message): void

Log an informational message, mostly intended for diagnostics.

Parameters

ParameterType
messagestring

Returns

void

Defined in

@novorender/offline/logger.ts:18


progress()?

optional progress(
value,
max,
operation): void

Update progress for potentially long running processes, such as synchronization.

Parameters

ParameterTypeDescription
valuenumberThe progress as a factor between 0 and max.
maxundefined | numberThe maximum value, or undefined if value is also undefined.
operation"scan" | "download"The operation currently being progressed.

Returns

void

Defined in

@novorender/offline/logger.ts:32


status()

status(state): void

Update the current status of object, intended for permanent display.

Parameters

ParameterTypeDescription
statestringThe new state of object, e.g. "ready", "error" or "completed".

Returns

void

Defined in

@novorender/offline/logger.ts:12