info
Logs a message at SentryLogLevel.INFO 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.INFO level with inline attributes.
Example:
Sentry.logger.info("User authenticated successfully") {
this["auth.method"] = "oauth2"
this["user.id"] = userId
}Parameters
The log message
A lambda with SentryAttributes receiver to set key-value attributes
Logs a message at SentryLogLevel.INFO level with template parameters and inline attributes.
Example:
Sentry.logger.info("User %s authenticated via %s", userId, method) {
this["auth.method"] = "oauth2"
this["user.id"] = userId
}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.INFO level using a DSL builder.
Example:
Sentry.logger.info {
message("User %s successfully authenticated", user.email)
attributes {
this["auth.method"] = "oauth2"
this["user.id"] = user.id
}
}Parameters
A lambda with SentryLogBuilder receiver to configure the log entry