Wikitude SDK API Reference

API Docs for: 8.2.0
Show:

logger Class

Module: AR

logger allows logging of messages, which will then be printed in the ARchitect Logging Console.

The Singleton instance of the logger class will automatically be created on World startup and can be accessed via AR.logger.

Methods

activateDebugMode

() deprecated

Deprecated: Use setHTMLLoggingEnabled instead

Calling this function enables the debug console. A button will appear on the bottom of the screen, allowing the developer to open the debug console.

debug

(
  • message
)

Will log a debug message on the console.

Parameters:

  • message String

    The debug message to be logged.

error

(
  • message
)

Will log an error message to the console.

Parameters:

  • message String

    The error message to be logged.

info

(
  • message
)

Will log an info message on the console.

Parameters:

  • message String

    The info message to be logged.

setHTMLLoggingEnabled(enabled)

()

Calling this function switches the debug console on and off. A button will appear on the bottom of the screen, allowing the developer to open the debug console.

setPlatformLoggingEnabled(enabled)

()

Calling this function switches logging for the platform on and off.

warning

(
  • message
)

Will log a warning message to the console.

Parameters:

  • message String

    The warning message to be logged.