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
SCIChartDebugLoggerinstance.Declaration
Objective-C
+ (nonnull instancetype)sharedInstance;Swift
class func sharedInstance() -> Self -
Sets the
ISCIChartDebugLoggerFacadeto write to. By default this isnil, but after being set, theSCIChartDebugLoggerwill write all output to this instance.Declaration
Objective-C
- (void)setLoggerFacade:(nonnull id<ISCIChartDebugLoggerFacade>)loggerFacade;Swift
func setLoggerFacade(_ loggerFacade: any ISCIChartDebugLoggerFacade)Parameters
loggerFacadeThe
ISCIChartDebugLoggerFacadeinstance. -
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
tagThe tag string.
stringFormatThe 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
tagThe tag string.
stringFormatThe 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
tagThe tag string.
stringFormatThe 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
exceptionException to handle.
tagThe 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
exceptionException to handle.
View on GitHub