@creator.co/wapi - v1.8.1
    Preparing search index...

    Logger class for logging messages with different log levels.

    Index

    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

      • ...args: any[]

        The arguments to be logged.

      Returns void

      None

    • Logs an error message with the given arguments.

      Parameters

      • ...args: any[]

        The arguments to log as an error message.

      Returns void

      None

    • Logs an exception with optional additional arguments.

      Parameters

      • exception: unknown

        The exception to log.

      • ...args: any[]

        Additional arguments to include in the log.

      Returns void

      None

    • Logs an informational message.

      Parameters

      • ...args: any[]

        The message(s) to log.

      Returns void

      None

    • Logs the given arguments with the INFO log level.

      Parameters

      • ...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

      • ...args: any[]

        The arguments to be logged.

      Returns void

      None

    • Logs a warning message with the provided arguments.

      Parameters

      • ...args: any[]

        The arguments to be logged as a warning message.

      Returns void

      None