Documentation

AnalyticsLogging

A Swift protocol for modeling an analytics reporting service.

Currently used by AnalyticsLogController, MixelpanelLogController and ConsoleLogController to provide unified logging to console and external analytics providers.

Usage

final class CustomLoggingController: AnalyticsLogging {

    func track(_ eventName: String) {
        // log an event
    }

    func track(_ eventName: String, properties: [String: Any]?) {
        // log an event with properties
    }
}