log
Adds a new analytics log entry to the internal storage.
This method is thread-safe and will trigger recomposition in any Compose UI that observes the logs property.
Parameters
log
The analytics log entry to add.
Samples
AnalyticsLogger.log(
AnalyticsLog(
tag = "HomeScreen",
screenClass = "com.example.ui.HomeScreen",
timestamp = Clock.System.now().toEpochMilliseconds(),
type = AnalyticsLogCategory.Screen.View
)
)Content copied to clipboard