
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;
-
Sets the
ISCIChartDebugLoggerFacade
to write to. By default this isnil
, but after being set, theSCIChartDebugLogger
will write all output to this instance.Declaration
Objective-C
- (void)setLoggerFacade:(nonnull id<ISCIChartDebugLoggerFacade>)loggerFacade;
Parameters
loggerFacade
The
ISCIChartDebugLoggerFacade
instance. -
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;
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;
Parameters
exception
Exception to handle.