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.

Properties


Properties

cee.Logger.error

Logs an error message.

cee.Logger.warn

Logs an warning message.

Methods

debug

cee.Logger.debug(_msg)

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

Arguments
  • _msg (string) –

Return type

void

enableDebug

cee.Logger.enableDebug(enable)

Enables/disables debug log messages.

Arguments
  • enable (boolean) –

Return type

void

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

enableInfo

cee.Logger.enableInfo(enable)

Enables/disables info log messages.

Arguments
  • enable (boolean) –

Return type

void

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

info

cee.Logger.info(_msg)

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

Arguments
  • _msg (string) –

Return type

void