CPLoggingDelegate
Objective-C
@protocol CPLoggingDelegate <NSObject>
Swift
protocol CPLoggingDelegate : NSObjectProtocol
Utility class for LoggingDelegate. The application using the SDK must implement this delegate and assign an instance of this implementation to Logger property in the Configuration through the application’s startup flow.
-
Main logging method defining the actual logging process
Since
1.0.0
Declaration
Objective-C
- (void)log:(id)logLevel withLogContext:(nonnull NSString *)logContext withMethodName:(nullable SEL)methodName withMessage:(nonnull NSString *)logMessage;
Swift
func log(_ logLevel: Any!, withLogContext logContext: String, withMethodName methodName: Selector?, withMessage logMessage: String)
Parameters
logLevel
LogLevel which is used for checking logLevel
logContext
NSString which includes package and class name
methodName
SEL
logMessage
NSString which includes log message