Skip to main content

LogRecord

A log record passed to a PowerSyncLogger.

Properties

PropertyTypeDescription
error?unknownWhen 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.
levelnumberThe 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.
messagestringThe main message to log.