LogAnalyticsService
class LogAnalyticsService(logger: AnalyticsLogger) : IdentifiableUserService, AnalyticsLifecycleService, ConsentService(source)
Prints the calls that are not events or properties, so the log shows the whole story: whether consent was ever granted, whether identify ran before the first event, whether reset fired on sign-out.
The user id is printed as-is. That is the point in a debug build and a leak in a release one, so register this provider under the same condition as the rest of the log adapter.
val log = LogAnalyticsService(logger)
provider(name = "log", events = logTracker, properties = logTracker,
identity = log, lifecycle = log, consent = log)Content copied to clipboard