DingiLoggingConfiguration
@interface DingiLoggingConfiguration : NSObject
The DingiLoggingConfiguration
object provides a global way to set this SDK logging levels
and logging handler.
-
The handler this SDK uses to log messages.
If this property is set to nil or if no custom handler is provided this property is set to the default handler.
The default handler uses
os_log
andNSLog
for iOS 10+ and iOS < 10 respectively.Declaration
Objective-C
@property (readwrite, copy, nonatomic, null_resettable) DingiLoggingBlockHandler handler;
Swift
var handler: DingiLoggingBlockHandler! { get set }
-
The logging level.
The default value is
DingiLoggingLevelNone
.Setting this property includes logging levels less than or equal to the setted value.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) DingiLoggingLevel loggingLevel;
Swift
var loggingLevel: DingiLoggingLevel { get set }
-
Returns the shared logging object.
Declaration
Objective-C
@property (readonly, nonatomic, class) DingiLoggingConfiguration *_Nonnull sharedConfiguration;
Swift
class var shared: DingiLoggingConfiguration { get }