Function logError

  • Logs error messages with red color.

    Parameters

    • functionName: string

      The name of the function where the error occurred.

    • error: string | object | Record<string, unknown>

      The error message or object to log.

    Returns void

Generated using TypeDoc