DebugInfoReporter
object DebugInfoReporter
The DebugInfoReporter is used to report debug information using the DebugEventDispatcher. These events are recorded as LITHO_DEBUG_INFO QPL events. It is recommended to gate debug logging to reduce the overhead of logging and control the sampling rate.
Functions
Link copied to clipboard
Detects if running in a test environment (Robolectric/JUnit) vs actual debug build
Link copied to clipboard
inline fun report(category: () -> String, level: LogLevel = LogLevel.DEBUG, renderStateId: Int = RenderState.NO_ID, write: MutableMap<String, Any?>.() -> Unit)