debug
Logs a message at SentryLogLevel.DEBUG 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.DEBUG level with inline attributes.
Example:
Sentry.logger.debug("Cache lookup for key") {
this["cache.key"] = cacheKey
this["cache.hit"] = true
}Parameters
The log message
A lambda with SentryAttributes receiver to set key-value attributes
Logs a message at SentryLogLevel.DEBUG level with template parameters and inline attributes.
Example:
Sentry.logger.debug("Cache %s for key: %s", status, cacheKey) {
this["cache.size"] = cache.size
this["cache.ttl"] = ttlSeconds
}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.DEBUG level using a DSL builder.
Example:
Sentry.logger.debug {
message("Cache %s for key: %s", if (hit) "hit" else "miss", cacheKey)
attributes {
this["cache.size"] = cache.size
this["cache.ttl"] = ttlSeconds
}
}Parameters
A lambda with SentryLogBuilder receiver to configure the log entry