GSKLog

Objective-C

@interface GSKLog : NSObject

Swift

class GSKLog : NSObject

An object to control the logging of the Genius Scan SDK.

  • The SDK logger.

    By default, the SDK will log using NSLog and will not log debug messages.

    Pass nil if you don’t want anything logged at all.

    Declaration

    Objective-C

    @property (class, nonatomic, nullable) id<GSKLogger> logger;

    Swift

    class var logger: GSKLogger? { get set }
  • Log a verbose message directly to the SDK logger.

    This is for the SDK internal use. If you want to customize the logger, inject your own GSKLogger as logger.

    Declaration

    Objective-C

    + (void)logVerbose:(NSString *_Nonnull)format, ...;
  • Log a debug message directly to the SDK logger.

    This is for the SDK internal use. If you want to customize the logger, inject your own GSKLogger as logger.

    Declaration

    Objective-C

    + (void)logDebug:(NSString *_Nonnull)format, ...;
  • Log an info message directly to the SDK logger.

    This is for the SDK internal use. If you want to customize the logger, inject your own GSKLogger as logger.

    Declaration

    Objective-C

    + (void)logInfo:(NSString *_Nonnull)format, ...;
  • Log a warning message directly to the SDK logger.

    This is for the SDK internal use. If you want to customize the logger, inject your own GSKLogger as logger.

    Declaration

    Objective-C

    + (void)logWarn:(NSString *_Nonnull)format, ...;
  • Log an error message directly to the SDK logger.

    This is for the SDK internal use. If you want to customize the logger, inject your own GSKLogger as logger.

    Declaration

    Objective-C

    + (void)logError:(NSString *_Nonnull)format, ...;