Skip to content

Impossible to disable debug logging for web builds #225

@willsmanley

Description

@willsmanley

I haven't looked to far into the library code to see what's going on, but even if I provide a logger with .OFF, I can't silence the debug logs (perhaps because they always go to console.log in JS which are picked up by dart debugger connection?).

something like this should work:

hierarchicalLoggingEnabled = true;
final logger = Logger('PowerSyncLogger')..level = Level.OFF;
db = PowerSyncDatabase(schema: schema, path: await getDatabasePath(), logger: logger);

it would be nice to be able to silence these so I can see my other web logs cleanly while powersync is running.

Thank you for the great sdk!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions