trace
Logs a message at SentryLogLevel.TRACE level.
Parameters
The message template (use %s for substitution, %% for literal %)
Arguments to substitute into the message template via toString()
Logs a message at SentryLogLevel.TRACE level with inline attributes.
Example:
Sentry.logger.trace("Executing SQL query") {
this["db.name"] = "users"
this["db.operation"] = "SELECT"
}Parameters
The log message
A lambda with SentryAttributes receiver to set key-value attributes
Logs a message at SentryLogLevel.TRACE level with template parameters and inline attributes.
Example:
Sentry.logger.trace("Executing SQL query: %s", query) {
this["db.name"] = "users"
this["db.operation"] = "SELECT"
}Parameters
The message template (use %s for substitution, %% for literal %)
Arguments to substitute into the message template via toString()
A lambda with SentryAttributes receiver to set key-value attributes
Logs a message at SentryLogLevel.TRACE level using a DSL builder.
Example:
Sentry.logger.trace {
message("Executing SQL query: %s", query)
attributes {
this["db.name"] = "users"
this["db.operation"] = "SELECT"
}
}Parameters
A lambda with SentryLogBuilder receiver to configure the log entry