Pre loader

Logging SciChart exceptions?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hi,

I’m evaluating SciChart for use in a production app.

Is there any way to log exceptions generated by SciChart? Currently I’m logging all handled and unhandled exceptions in my app to my server so that issues can be flagged without users having to manually submit support tickets. SciChart is printing internal exceptions to console – is there any way to override that with our own error handling mechanism? If not, how should we monitor for production errors generated internally by SciChart?

Thanks

Version
2.2.0.2324
  • You must to post comments
0
0

Hi Mike,

Yes, you can override it by setting custom ISciChartDebugLoggerFacade implementation ( default one prints messages to logcat ) for SciChartDebugLogger:

  SciChartDebugLogger.instance().setLoggerFacade(new ISciChartDebugLoggerFacade() {
        @Override
        public void logInfo(String tag, String stringFormat, Object... args) {

        }

        @Override
        public void logWarning(String tag, String stringFormat, Object... args) {

        }

        @Override
        public void logError(String tag, String stringFormat, Object... args) {

        }

        @Override
        public void handleException(String tag, Exception exception) {

        }
    });

Hope it helps!

Best regards,
Yura

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies