• It returns an object with three functions, each of which logs a message with a different color

    Parameters

    • namespace: string

      This is the namespace of the logger.

    • Optional prefix: string = 'workflow-js'

      This is the prefix that will be used for the debug module.

    Returns {
        debug: ((formatter, ...args) => void);
        error: ((formatter, ...args) => void);
        hit: ((formatter, ...args) => void);
        info: ((formatter, ...args) => void);
        miss: ((formatter, ...args) => void);
        warn: ((formatter, ...args) => void);
    }

    An object with three functions.

    • debug: ((formatter, ...args) => void)
        • (formatter, ...args): void
        • Parameters

          • formatter: string
          • Rest ...args: unknown[]

          Returns void

    • error: ((formatter, ...args) => void)
        • (formatter, ...args): void
        • Parameters

          • formatter: string
          • Rest ...args: unknown[]

          Returns void

    • hit: ((formatter, ...args) => void)
        • (formatter, ...args): void
        • Parameters

          • formatter: string
          • Rest ...args: unknown[]

          Returns void

    • info: ((formatter, ...args) => void)
        • (formatter, ...args): void
        • Parameters

          • formatter: string
          • Rest ...args: unknown[]

          Returns void

    • miss: ((formatter, ...args) => void)
        • (formatter, ...args): void
        • Parameters

          • formatter: string
          • Rest ...args: unknown[]

          Returns void

    • warn: ((formatter, ...args) => void)
        • (formatter, ...args): void
        • Parameters

          • formatter: string
          • Rest ...args: unknown[]

          Returns void

Generated using TypeDoc