log
Records log with a fresh internal occurrence ID and an immutable copy of its parameters. Snapshot-state storage supports calls from different threads and notifies observing UI.
Parameters
log
Event to record. Never include secrets or personal data in its parameters.
Samples
AnalyticsLogger.log(
AnalyticsLog(
tag = "HomeScreen",
screenClass = "com.example.ui.HomeScreen",
timestamp = Clock.System.now().toEpochMilliseconds(),
type = AnalyticsLogCategory.Screen.View
)
)Content copied to clipboard