Skip to content

error

Logs an error message to the console if the logging condition is met.

Import

import { Logger } from "@aa-sdk/core";

Usage

import { Logger } from "@aa-sdk/core";
 
Logger.error("An error occurred while processing the request");

Parameters

msg

string The primary error message to be logged

args

...any[] Additional arguments to be logged along with the error message