Logger Class
This class is dedicated to debugging by providing methods which are only active in debug mode.
Item Index
Methods
- clearConsole static
- setDebugMode
- writeError static
- writeMessage static
- writeOutMessage static
- writeWarning static
Methods
clearConsole
()
static
Clears the HTML debug console.
setDebugMode
(
-
enabled
Enables or disables the debugger.
Parameters:
-
enabled
BooleanSet to ’true’ to enable or ’false’ to disable.
writeError
(
static
-
mixed
Displays an error message in the browser's console. (alias to console.error).
Parameters:
-
mixed
ObjectAn object or a string to display.
writeMessage
(
static
-
mixed
Displays a standard message in the browser's console. (alias to console.log).
Parameters:
-
mixed
ObjectAn object or a string to display.
writeOutMessage
(
static
-
messageText
Displays a message in the HTML debug console.
Parameters:
-
messageText
StringA message to show.
writeWarning
(
static
-
mixed
Displays a warning message in the browser's console. (alias to console.warn).
Parameters:
-
mixed
ObjectAn object or a string to display.