public final class SciChartDebugLogger
extends java.lang.Object
ISciChartDebugLoggerFacade
via setLoggerFacade(ISciChartDebugLoggerFacade)
.Modifier and Type | Method and Description |
---|---|
void |
handleException(java.lang.Exception exception)
Handles caught exception by passing it to
ISciChartDebugLoggerFacade . |
static SciChartDebugLogger |
instance()
Gets the singleton
SciChartDebugLogger instance. |
void |
logError(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Writes an error line to the
ISciChartDebugLoggerFacade . |
void |
logWarning(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Writes a warning line to the
ISciChartDebugLoggerFacade . |
void |
setLoggerFacade(ISciChartDebugLoggerFacade loggerFacade)
Sets the
ISciChartDebugLoggerFacade to write to. |
void |
writeLine(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Writes an info line to the
ISciChartDebugLoggerFacade . |
public static SciChartDebugLogger instance()
SciChartDebugLogger
instance.SciChartDebugLogger
instance.public void setLoggerFacade(ISciChartDebugLoggerFacade loggerFacade)
ISciChartDebugLoggerFacade
to write to. By default this is null, but after being set, the SciChartDebugLogger
will write all output to this instance.loggerFacade
- The ISciChartDebugLoggerFacade
instance.public void writeLine(java.lang.String tag, java.lang.String formatString, java.lang.Object... args)
ISciChartDebugLoggerFacade
. By default, the facade instance is null. In this case nothing happens.tag
- The tag string.formatString
- The format string.args
- The option arguments.public void logWarning(java.lang.String tag, java.lang.String formatString, java.lang.Object... args)
ISciChartDebugLoggerFacade
. By default, the facade instance is null. In this case nothing happens.tag
- The tag string.formatString
- The format string.args
- The option arguments.public void logError(java.lang.String tag, java.lang.String formatString, java.lang.Object... args)
ISciChartDebugLoggerFacade
. By default, the facade instance is null. In this case nothing happens.tag
- The tag string.formatString
- The format string.args
- The option arguments.public void handleException(java.lang.Exception exception)
ISciChartDebugLoggerFacade
. By default, the facade instance is null. In this case exception will logged into logcat.exception
- Exception to handle.