Logger

class cee.Logger()

The logger used in CEETRON Envision for Web (EnvisionWeb)

Static class for controlling the log output from EnvisionWeb, and for logging within the client app.

Use the enableInfo function to turn on/off info logging from EnvisionWeb.

Use the enableDebug function to turn on/off debug logging from EnvisionWeb.

These should only be used for debugging and should be disabled in a production environment.

Constructors

Properties


Constructors

Logger.constructor()
Return type:

Logger

Properties

Logger.debug
Type:

function

Logger.debug(_msg)
Arguments:
  • _msg (string) – None

Logs a debug message. Will be shown if debug messages are enabled.

Return type:

void

Logger.error
Type:

any

Logs an error message.

Logger.info
Type:

function

Logger.info(_msg)
Arguments:
  • _msg (string) – None

Logs an info message. Will be shown if info messages are enabled.

Return type:

void

Logger.warn
Type:

any

Logs a warning message.

Methods

static enableDebug

Logger.enableDebug(enable)
Arguments:
  • enable (boolean) – None

Enables/disables debug log messages.

Debug log messages contain detailed debug information about the client and communication with the server.

Return type:

void

static enableInfo

Logger.enableInfo(enable)
Arguments:
  • enable (boolean) – None

Enables/disables info log messages.

Info log messages contain information about the client and communication with the server.

Return type:

void