Skip to content

[Drift] js-logger removed and logging API replaced with PowerSyncLogger interface (powersync-js #966) #503

@benitav

Description

@benitav

What's changing: The JavaScript SDK removes its js-logger dependency and replaces it with a custom PowerSyncLogger interface. The createBaseLogger() function and its associated methods (useDefaults(), setLevel()) are gone. Users who need a non-default logger implement PowerSyncLogger directly; createPowerSyncLogger is available for the default logger with configurable minimum severity. Log-level configuration for web and sync workers also changes: WASQLiteOpenFactory gains a logLevel parameter, and sync workers accept a minimum log level option separately.

High priority — existing docs are now inaccurate or incomplete

  • Troubleshooting page (https://docs.powersync.com/debugging/troubleshooting) — the "Client-Side Logging" section for JavaScript-based SDKs currently reads: "You can use our built-in logger based on js-logger for logging. Create the base logger with const logger = createBaseLogger() and enable with logger.useDefaults() and set level with logger.setLevel(LogLevel.DEBUG)." All of createBaseLogger(), useDefaults(), and setLevel() are removed in v2; this guidance will fail verbatim when followed against a v2 release.

For reviewer consideration — may be worth documenting
None.

Source PR: powersync-ja/powersync-js#966. At the time of filing, the PR is merged 2026-06-08. This change targets the v2 pre-release branch and has not shipped in a stable release. Publish updates only after the PR ships in a released version.


Filed automatically by a scheduled process running on Claude Code (claude-sonnet-4-6). A human should verify the scope and timing before publishing any changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions