LogRecord
A log record passed to a PowerSyncLogger.
Properties
| Property | Type | Description |
|---|---|---|
error? | unknown | When the log message contains an error, the error causing the log. This is not guaranteed to be an Error instance. On the web, we might have to serialize objects across message channels and represent them as a string. |
level | number | The log level (see LogLevels for preconfigured values) for the message. Depending on how a receiving logger has been configured, messages below a configured minimum level may be ignored. |
message | string | The main message to log. |