error

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

Import

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

Usage

1import { Logger } from "@aa-sdk/core";
2
3Logger.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