SentryLogger

interface SentryLogger

API for sending structured logs to Sentry.

This interface provides methods to log messages at different severity levels.

Functions

Link copied to clipboard
abstract fun debug(block: SentryLogBuilder.() -> Unit)

Logs a message at SentryLogLevel.DEBUG level using a DSL builder.

abstract fun debug(message: String, vararg args: Any?)

Logs a message at SentryLogLevel.DEBUG level.

abstract fun debug(message: String, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.DEBUG level with inline attributes.

abstract fun debug(message: String, vararg args: Any?, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.DEBUG level with template parameters and inline attributes.

Link copied to clipboard
abstract fun error(block: SentryLogBuilder.() -> Unit)

Logs a message at SentryLogLevel.ERROR level using a DSL builder.

abstract fun error(message: String, vararg args: Any?)

Logs a message at SentryLogLevel.ERROR level.

abstract fun error(message: String, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.ERROR level with inline attributes.

abstract fun error(message: String, vararg args: Any?, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.ERROR level with template parameters and inline attributes.

Link copied to clipboard
abstract fun fatal(block: SentryLogBuilder.() -> Unit)

Logs a message at SentryLogLevel.FATAL level using a DSL builder.

abstract fun fatal(message: String, vararg args: Any?)

Logs a message at SentryLogLevel.FATAL level.

abstract fun fatal(message: String, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.FATAL level with inline attributes.

abstract fun fatal(message: String, vararg args: Any?, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.FATAL level with template parameters and inline attributes.

Link copied to clipboard
abstract fun info(block: SentryLogBuilder.() -> Unit)

Logs a message at SentryLogLevel.INFO level using a DSL builder.

abstract fun info(message: String, vararg args: Any?)

Logs a message at SentryLogLevel.INFO level.

abstract fun info(message: String, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.INFO level with inline attributes.

abstract fun info(message: String, vararg args: Any?, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.INFO level with template parameters and inline attributes.

Link copied to clipboard
abstract fun log(level: SentryLogLevel, block: SentryLogBuilder.() -> Unit)

Logs a message at a specific level using a DSL builder.

abstract fun log(level: SentryLogLevel, message: String, vararg args: Any?)

Logs a message at a specific level.

abstract fun log(level: SentryLogLevel, message: String, vararg args: Any?, attributes: SentryAttributes.() -> Unit)

Logs a message at a specific level with inline attributes.

Link copied to clipboard
abstract fun trace(block: SentryLogBuilder.() -> Unit)

Logs a message at SentryLogLevel.TRACE level using a DSL builder.

abstract fun trace(message: String, vararg args: Any?)

Logs a message at SentryLogLevel.TRACE level.

abstract fun trace(message: String, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.TRACE level with inline attributes.

abstract fun trace(message: String, vararg args: Any?, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.TRACE level with template parameters and inline attributes.

Link copied to clipboard
abstract fun warn(block: SentryLogBuilder.() -> Unit)

Logs a message at SentryLogLevel.WARN level using a DSL builder.

abstract fun warn(message: String, vararg args: Any?)

Logs a message at SentryLogLevel.WARN level.

abstract fun warn(message: String, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.WARN level with inline attributes.

abstract fun warn(message: String, vararg args: Any?, attributes: SentryAttributes.() -> Unit)

Logs a message at SentryLogLevel.WARN level with template parameters and inline attributes.