On start up of each world, the library creates a singleton
AR.logger instance, which can be used by the developer to log messages.
AR.logger.activateDebugMode(). For example in the
activateDebugMode() is called, it automatically creates a button at the bottom of your display, which allows you to open the Logging console. When you click the button, the logging window appears. Within this window, you can select the log-levels you would like to see, as well as close the logging console again.
Bear in mind that the system itself will also use the logging framework to log messages, thus allowing you to debug if anything unexpected happens.
Please remember to deactivate the logging framework before you actually publish your world by removing the call to
activateDebugMode(). Otherwise, the users of your augmented reality experience will always see the button at the bottom of the page, and would be able to follow debug messages.