ComponentsReporter

This is intended as a hook into android.util.Log, but allows you to provide your own functionality. Use it as ComponentsReporter.emitMessage(level, message); As a default, it simply calls android.util.Log (see DefaultComponentsReporter). You may supply your own with ComponentsReporter.provide.

Types

Link copied to clipboard

Functions

Link copied to clipboard
fun emitMessage(level: ComponentsReporter.LogLevel, categoryKey: String, message: String, samplingFrequency: Int = 0, metadata: Map<String, Any>? = null)

Emit a message that can be logged or escalated by the logger implementation.

Link copied to clipboard
Link copied to clipboard
fun provide(instance: ErrorReporterDelegate)