TXLogger

public final class TXLogger : NSObject

Class responsible for control logging in the SDK, allowing external log handlers to be updated by SDK clients via the TXLogHandler protocol.

By default, TXLogger is initialized with a TXStandardLogHandler instance set to log only warning and error log messages.

  • Updates the log handler of the SDK with an external class that conforms to the TXLogHandler protocol.

    Declaration

    Swift

    @objc
    public static func setHandler(handler: TXLogHandler)

    Parameters

    handler

    The new log handler to be used