Skip to main content

PowerSyncLogger

A logger used by the PowerSync SDK.

This is deliberately a very simple interface, and it's not a designed to be a general-purpose logger you would use in your application. Instead, you can provide an implementation of this to PowerSync to make it use your preferred logging libraries.

By default, the SDK uses a createConsoleLogger instance forwarding messages to console.log.

Methods

log()

log(record): void;

Parameters

ParameterType
recordLogRecord

Returns

void