WanaPlan

API Docs for: 2.7.0
Show:

Logger

Module: Wanaplan

static

Summary

This class is dedicated to debugging by providing methods which are only active in debug mode.

Item Index

Methods

Methods

clearConsole

Syntax

clearConsole

() static

Summary

Clears the HTML debug console.

setDebugMode

Syntax

setDebugMode

(
  • enabled
)

Summary

Enables or disables the debugger.

Parameters:

  • enabled Boolean

    Set to ’true’ to enable or ’false’ to disable.

writeError

Syntax

writeError

(
  • mixed
)
static

Summary

Displays an error message in the browser's console. (alias to console.error).

Parameters:

  • mixed Object

    An object or a string to display.

writeMessage

Syntax

writeMessage

(
  • mixed
)
static

Summary

Displays a standard message in the browser's console. (alias to console.log).

Parameters:

  • mixed Object

    An object or a string to display.

writeOutMessage

Syntax

writeOutMessage

(
  • messageText
)
static

Summary

Displays a message in the HTML debug console.

Parameters:

  • messageText String

    A message to show.

writeWarning

Syntax

writeWarning

(
  • mixed
)
static

Summary

Displays a warning message in the browser's console. (alias to console.warn).

Parameters:

  • mixed Object

    An object or a string to display.