NoopLogger

A Logger implementation that discards all log messages.

This can be used when the host application does not want the SDK to emit any logs (e.g. strict production builds, security-sensitive use cases, or when logs are already captured elsewhere and duplication is unwanted).

All log calls (d, i, w, e) are no-ops.

Setting this logger is equivalent to disabling logging for the SDK.

Properties

Link copied to clipboard
open override val minLevel: LogLevel

The lowest severity this logger cares about. The SDK checks it before building a message, so setting it high keeps verbose logging from costing anything.

Functions

Link copied to clipboard
open override fun d(message: String, t: Throwable?)

Logs at LogLevel.DEBUG: verbose detail useful while integrating.

Link copied to clipboard
open override fun e(message: String, t: Throwable?)

Logs at LogLevel.ERROR: a failure the SDK could not recover from.

Link copied to clipboard
open override fun i(message: String, t: Throwable?)

Logs at LogLevel.INFO: normal lifecycle and diagnostic events.

Link copied to clipboard
open override fun w(message: String, t: Throwable?)

Logs at LogLevel.WARN: something unexpected that the SDK recovered from.