SentryLog

open class SentryLog(val timestamp: Double, var level: SentryLogLevel, var body: String, var severityNumber: Int? = null, val attributes: SentryAttributes = SentryAttributes.empty())

Represents a structured log entry.

This is used to be able to modify logs within SentryLogOptions.beforeSend.

Constructors

Link copied to clipboard
constructor(timestamp: Double, level: SentryLogLevel, body: String, severityNumber: Int? = null, attributes: SentryAttributes = SentryAttributes.empty())

Properties

Link copied to clipboard

Custom key-value attributes attached to this log entry.

Link copied to clipboard
open var body: String

The log message body.

Link copied to clipboard

The severity level of this log entry.

Link copied to clipboard
open var severityNumber: Int?

Optional numeric severity.

Link copied to clipboard
open val timestamp: Double

Unix timestamp in seconds when the log was created.