Wikitude SDK API Reference

API Docs for: 5.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

()

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.

warning

(
  • message
)

Will log a warning message to the console.

Parameters:

  • message String

    The warning message to be logged.