Skip to content

Home > @opengovsg/logging > Logger > error

Logger.error() method ​

An operation failed and a human likely needs to investigate (potentially page-worthy). Carries the error that caused the failure.

Signature:

typescript
error(input: LogInput): void;

Parameters ​

ParameterTypeDescription
inputLogInput

Returns:

void