Logger class for logging messages with different log levels.

Constructors

  • Constructs a Logger object with the given configuration and transaction ID.

    Parameters

    • config: undefined | LoggerConfig

      The configuration object for the logger. Can be undefined.

    • transactionID: string

      The ID of the transaction associated with the logger.

    Returns default

    None

Methods

  • Logs the given arguments with the debug log level.

    Parameters

    • Rest...args: any[]

      The arguments to be logged.

    Returns void

    None

  • Logs an error message with the given arguments.

    Parameters

    • Rest...args: any[]

      The arguments to log as an error message.

    Returns void

    None

  • Logs an exception with optional additional arguments.

    Parameters

    • exception: any

      The exception to log.

    • Rest...args: any[]

      Additional arguments to include in the log.

    Returns void

    None

  • Logs an informational message.

    Parameters

    • Rest...args: any[]

      The message(s) to log.

    Returns void

    None

  • Logs the given arguments with the INFO log level.

    Parameters

    • Rest...args: any[]

      The arguments to be logged.

    Returns void

    None

  • Returns a boolean value indicating whether the notGlobalLogger function is executed successfully.

    Returns boolean

    • true if the function is executed successfully, false otherwise.
  • Logs a warning message to the console.

    Parameters

    • Rest...args: any[]

      The arguments to be logged.

    Returns void

    None

  • Logs a warning message with the provided arguments.

    Parameters

    • Rest...args: any[]

      The arguments to be logged as a warning message.

    Returns void

    None