Logging
-
The default logger provided by the SDK. It will log into the Xcode console. It will use
See moreprint
for iOS < 10.0 and os_log for iOS >= 10.0.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 moreDeclaration
Swift
@objc(PESDKLoggerProtocol) public protocol LoggerProtocol : AnyObject
-
The
See moreMasterLogger
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 theadd
method. All child loggers must implement theLoggerProtocol
.Declaration
Swift
@objcMembers @objc(PESDKLogger) public class MasterLogger : NSObject