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
| Parameter | Type | Description |
|---|---|---|
| input | LogInput |
Returns:
void