ConsoleAnalyticsEngine

final public class ConsoleAnalyticsEngine
extension ConsoleAnalyticsEngine: AnalyticsEngine

Prints analytics events to standard output.

This should be used only for debugging purposes. If you’re building for iOS 14+, consider using LoggerAnalyticsEngine instead. You can combine this with your actual analytics engine by using CompoundAnalyticsEngine.

  • Category to prepend to each line of console output

    Rough corollary to Logger.category in Apple’s unified logging system.

    Declaration

    Swift

    public let category: String
  • Initialize console analytics engine

    Declaration

    Swift

    public init()

AnalyticsEngine