ComponentsReporter
object ComponentsReporter
Deprecated
Use DebugInfoReporter instead
Replace with
import com.facebook.litho.debug.DebugInfoReporter
Content copied to clipboard
DebugInfoReporterContent copied to clipboard
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.
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