Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

The logger used in Ceetron Cloud Components (C3)

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

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

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

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

Hierarchy

  • Logger

Index

Properties

Methods

Properties

Static error

error: any = window.console.error.bind(window.console, 'cee ERR: %s')

Logs an error message.

Static warn

warn: any = window.console.warn.bind( window.console, 'cee wrn: %s')

Logs an warning message.

Methods

Static debug

  • debug(_msg: string): void
  • Logs a debug message. Will be shown if debug messages are enabled.

    Parameters

    • _msg: string

    Returns void

Static enableDebug

  • 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

    • Default value enable: boolean = true

    Returns void

Static enableInfo

  • enableInfo(enable?: boolean): void
  • Enables/disables info log messages.

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

    Parameters

    • Default value enable: boolean = true

    Returns void

Static info

  • info(_msg: string): void
  • Logs an info message. Will be shown if info messages are enabled.

    Parameters

    • _msg: string

    Returns void

Generated using TypeDoc