NTLog


@interface NTLog : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

A diagnostic log for various SDK events.

  • Returns the state of error logging.

    Declaration

    Objective-C

    + (BOOL)isShowError;

    Return Value

    True if errors are shown in the log.

  • Enables or disables writing error messages to the log.

    Declaration

    Objective-C

    + (void)setShowError:(BOOL)showError;

    Parameters

    showError

    If true, then error messages will be written to the log.

  • Returns the state of warning logging.

    Declaration

    Objective-C

    + (BOOL)isShowWarn;

    Return Value

    True if warnings are shown in the log.

  • Enables or disables writing warning messages to the log.

    Declaration

    Objective-C

    + (void)setShowWarn:(BOOL)showWarn;

    Parameters

    showWarn

    If true, then warning messages will be written to the log.

  • Returns the state of general info logging.

    Declaration

    Objective-C

    + (BOOL)isShowInfo;

    Return Value

    True if general info is shown in the log.

  • Enables or disables writing info messages to the log.

    Declaration

    Objective-C

    + (void)setShowInfo:(BOOL)showInfo;

    Parameters

    showInfo

    If true, then info messages will be written to the log.

  • Returns the state of internal debug message logging.

    Declaration

    Objective-C

    + (BOOL)isShowDebug;

    Return Value

    True if debug messages are shown in the log.

  • Enables or disables writing internal debug messages to the log.

    Declaration

    Objective-C

    + (void)setShowDebug:(BOOL)showDebug;

    Parameters

    showDebug

    If true, then debug messages will be written to the log.

  • Returns the tag for the log events.

    Declaration

    Objective-C

    + (NSString *)getTag;

    Return Value

    The current tag for the log events.

  • Sets the tag for the log events. The tag will be visible in the log and log messages can be filtered by the tag.

    Declaration

    Objective-C

    + (void)setTag:(NSString *)tag;

    Parameters

    tag

    The tag to use in the log events.

  • Returns the current log listener.

    Declaration

    Objective-C

    + (NTLogEventListener *)getLogEventListener;

    Return Value

    The current log event listener.

  • Sets the log listener that can be used to intercept log messages.

    Declaration

    Objective-C

    + (void)setLogEventListener:(NTLogEventListener *)listener;

    Parameters

    listener

    The log event listener.

  • Logs specified fatal error message and terminates.

    Declaration

    Objective-C

    + (void)fatal:(NSString *)message;

    Parameters

    message

    The message to log.

  • Logs specified error message (if error logging is enabled).

    Declaration

    Objective-C

    + (void)error:(NSString *)message;

    Parameters

    message

    The message to log.

  • Logs specified warning message (if warning logging is enabled).

    Declaration

    Objective-C

    + (void)warn:(NSString *)message;

    Parameters

    message

    The message to log.

  • Logs specified info message (if info logging is enabled).

    Declaration

    Objective-C

    + (void)info:(NSString *)message;

    Parameters

    message

    The message to log.

  • Logs specified debug message (if debug logging is enabled).

    Declaration

    Objective-C

    + (void)debug:(NSString *)message;

    Parameters

    message

    The message to log.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;