Logger class to encapsulate logging functionality.

Constructors

Properties

Methods

Constructors

Properties

level: LogLevel

Methods

  • Private method to handle logging based on the log level.

    Parameters

    • level: LogLevel

      The logging level.

    • Optional message: any

      Message to be logged.

    • Rest ...optionalParams: any[]

      Additional logging parameters.

    Returns void

  • Logs a debug message.

    Parameters

    • Optional message: any

      Message to be logged.

    • Rest ...optionalParams: any[]

      Additional logging parameters.

    Returns void

  • Logs an error message.

    Parameters

    • Optional message: any

      Message to be logged.

    • Rest ...optionalParams: any[]

      Additional logging parameters.

    Returns void

  • Logs an info message.

    Parameters

    • Optional message: any

      Message to be logged.

    • Rest ...optionalParams: any[]

      Additional logging parameters.

    Returns void

  • Generic logging method.

    Parameters

    • Optional message: any

      Message to be logged.

    • Rest ...optionalParams: any[]

      Additional logging parameters.

    Returns void

  • Logs a warning message.

    Parameters

    • Optional message: any

      Message to be logged.

    • Rest ...optionalParams: any[]

      Additional logging parameters.

    Returns void

Generated using TypeDoc