Logging

  • The default logger provided by the SDK. It will log into the Xcode console. It will use print for iOS < 10.0 and os_log for iOS >= 10.0.

    See more

    Declaration

    Swift

    @objcMembers
    @objc(PESDKDefaultLogger)
    public class DefaultLogger : NSObject, LoggerProtocol
  • The logger is used by the SDK, to promote import informations. A client could use his own logger to log the messages to a server or something alike.

    See more

    Declaration

    Swift

    @objc(PESDKLoggerProtocol)
    public protocol LoggerProtocol : AnyObject
  • The MasterLogger manages and deploys loggers. That means it holds all instances of loggers, and delegates incoming log messages to each of them. Also it takes case of threading, to keep logging efficient. More loggers can be added using the add method. All child loggers must implement the LoggerProtocol.

    See more

    Declaration

    Swift

    @objcMembers
    @objc(PESDKLogger)
    public class MasterLogger : NSObject