Logging APIs

MXOLogComponent

A list of components to filter the messages the MXO SDK will log.

typedef NS_OPTIONS(NSUInteger, MXOLogComponent) {
    	MXOLogComponentNone          = 1,
    	MXOLogComponentAny           = 1 << 1,
    	MXOLogComponentInteraction   = 1 << 2,
    	MXOLogComponentNetworking    = 1 << 3
};
EnumDescription
MXOLogComponentAnyThe combination of all components listed below other than MXOLogComponentNone.
MXOLogComponentInteractionInteraction tracking log messages.
MXOLogComponentNetworkingNetworking log messages.
MXOLogComponentNoneNeither of the components listed above is logged. Used to opt out of logging.
Note: For more information, see how to use MXO components when configuring logging.

MXOLoggingConfiguration

The logging configuration object for the MXO SDK.

@interface MXOLoggingConfiguration : NSObject
@property (nonatomic, assign, readonly) MXOLogLevel logLevel;
@property (nonatomic, assign, readonly) MXOLogComponent logComponent;
@end
PropertyTypeDescription
logLevelMXOLogLevelA set of MXO log levels.
logComponentMXOLogComponentA set of MXO log components.

Create an instance using the Builder as shown below:

MXOLoggingConfiguration *loggingConfiguration = [MXOLoggingConfiguration initWithBuilder:^(MXOLoggingConfigurationBuilder * _Nonnull builder) {
        builder.logLevel = (MXOLogLevelVerbose);
        builder.logComponent = (MXOLogComponentAny);
}];
Note: For more information, see how to configure logging.

MXOLogLevel

A list of levels (IE severity) to filter the messages the MXO SDK will log.

Every level is logged, plus those that are less critical than it.

typedef NS_OPTIONS(NSUInteger, MXOLogLevel) {
    	MXOLogLevelNone     = 1,
    	MXOLogLevelVerbose  = 1 << 1,
    	MXOLogLevelInfo     = 1 << 2,
    	MXOLogLevelWarn     = 1 << 3,
    	MXOLogLevelError    = 1 << 4,
    	MXOLogLevelDebug    = 1 << 5
};
EnumDescription
MXOLogLevelVerboseAny amount of detail might be logged.
MXOLogLevelDebugDebug details are logged, and all the levels below.
MXOLogLevelErrorError details are logged, and all the levels below.
MXOLogLevelWarnWarning details are logged, and all the levels below.
MXOLogLevelInfoInfo details are logged, and the level below.
MXOLogLevelNoneNeither of the levels listed above is logged. Used to opt out of logging.
Note: For more information, see how to use MXO log levels when configuring logging.