Logging

Arcadiacharts implements different log levels.

  • ERROR - There are errors in the code or a configuration is wrong.
  • WARN - Something was wrong but the library could correct it.
  • INFO - Information about decisions that were automatically taken by the library.
  • DEBUG - More information to help find mistakes.
  • TRACE - Very detailed information on every aspect of the chart.

Usage

ac.DivLogger.addLevel(ac.LogLevel.ERROR);
ac.DivLogger.addLevel(ac.LogLevel.WARN);
ac.DivLogger.addLevel(ac.LogLevel.INFO);
ac.DivLogger.addLevel(ac.LogLevel.DEBUG);
ac.DivLogger.addLevel(ac.LogLevel.TRACE);

The levels ERROR and WARN are on by default and don“t need to be activated. If you have errors or warnings in your chart and wish to publish the chart anyway, you can disable the logs with the code:

ac.DivLogger.removeLevel( ac.LogLevel.ERROR );
ac.DivLogger.removeLevel( ac.LogLevel.WARN );