iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

SCIChartDebugLogger

@interface SCIChartDebugLogger : NSObject

Provides a debug logger which can be used to pipe debug messages from SciChart to your own code, by setting the ISCIChartDebugLoggerFacade via -[SCIChartDebugLogger setLoggerFacade:].

  • Gets the shared SCIChartDebugLogger instance.

    Declaration

    Objective-C

    + (nonnull instancetype)sharedInstance;

    Swift

    class func sharedInstance() -> Self
  • Sets the ISCIChartDebugLoggerFacade to write to. By default this is nil, but after being set, the SCIChartDebugLogger will write all output to this instance.

    Declaration

    Objective-C

    - (void)setLoggerFacade:(nonnull id<ISCIChartDebugLoggerFacade>)loggerFacade;

    Swift

    func setLoggerFacade(_ loggerFacade: ISCIChartDebugLoggerFacade)

    Parameters

    loggerFacade
  • Writes an info line to the ISCIChartDebugLoggerFacade. By default, the facade instance is nil. In this case - nothing happens.

    Declaration

    Objective-C

    - (void)writeLine:(nonnull NSString *)tag
               format:(nonnull NSString *)stringFormat, ...;

    Parameters

    tag

    The tag string.

    stringFormat

    The format string.

  • Writes a warning line to the ISCIChartDebugLoggerFacade. By default, the facade instance is nil. In this case - nothing happens.

    Declaration

    Objective-C

    - (void)logWarning:(nonnull NSString *)tag
                format:(nonnull NSString *)stringFormat, ...;

    Parameters

    tag

    The tag string.

    stringFormat

    The format string.

  • Writes an error line to the ISCIChartDebugLoggerFacade. By default, the facade instance is nil. In this case - nothing happens.

    Declaration

    Objective-C

    - (void)logError:(nonnull NSString *)tag
              format:(nonnull NSString *)stringFormat, ...;

    Parameters

    tag

    The tag string.

    stringFormat

    The format string.

  • Handles caught exception by passing it to ISCIChartDebugLoggerFacade. By default, the facade instance is nil. In this case exception will logged into console.

    Declaration

    Objective-C

    - (void)handleException:(nonnull NSException *)exception
                    withTag:(nonnull NSString *)tag;

    Swift

    func handle(_ exception: NSException, withTag tag: String)

    Parameters

    exception

    Exception to handle.

    tag

    The string tag.

  • Handles caught exception by passing it to ISCIChartDebugLoggerFacade. By default, the facade instance is nil. In this case exception will logged into console.

    Declaration

    Objective-C

    - (void)handleException:(nonnull NSException *)exception;

    Swift

    func handle(_ exception: NSException)

    Parameters

    exception

    Exception to handle.