Internal Logger utility for the TECSAFE Widget SDK. Uses a singleton pattern to manage log levels globally.

Properties

prefix: "[TECSAFE]" = '[TECSAFE]'

Methods

  • Logs a debug message to the console.

    Parameters

    • Rest...message: string[]

      One or more string arguments to log.

    Returns void

  • Logs an error message to the console.

    Parameters

    • Rest...message: string[]

      One or more string arguments to log.

    Returns void

  • Logs an informational message to the console.

    Parameters

    • Rest...message: string[]

      One or more string arguments to log.

    Returns void

  • Sets the current log level. Only messages with a priority equal to or higher than this level will be output to the console.

    Parameters

    • logLevel: LogLevel

      The desired logging severity level.

    Returns void

  • Logs a warning message to the console.

    Parameters

    • Rest...message: string[]

      One or more string arguments to log.

    Returns void

  • Retrieves the singleton instance of the Logger. Creates the instance if it does not already exist.

    Returns Logger

    The Logger instance.