logger Class
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.
Item Index
Methods
activateDebugMode
()
deprecated
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
StringThe debug message to be logged.
error
-
message
Will log an error message to the console.
Parameters:
-
message
StringThe error message to be logged.
info
-
message
Will log an info message on the console.
Parameters:
-
message
StringThe 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
StringThe warning message to be logged.