Logger

class cee.Logger()

The logger used in HOOPS 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.

Index

Constructors

Properties

Methods

Constructors

cee.Logger.constructor()
Logger(): Logger

Returns: Logger

Properties

cee.Logger.debug

static

debug: (_msg: string) => void

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

cee.Logger.error

static

error: any

Logs an error message.

cee.Logger.info

static

info: (_msg: string) => void

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

cee.Logger.warn

static

warn: any

Logs a warning message.

Methods

static cee.Logger.enableDebug()

static

enableDebug(enable: boolean?): void

Enables/disables debug log messages.

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

Parameters

enable: boolean = true

Returns: void

static cee.Logger.enableInfo()

static

enableInfo(enable: boolean?): void

Enables/disables info log messages.

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

Parameters

enable: boolean = true

Returns: void