Skip to content

Home > @opengovsg/logging > Logger > warn

Logger.warn() method ​

Something is off but was handled or recovered and needs no immediate action (e.g. a retry, a fallback path taken, a deprecated route hit). May carry an error for context.

Signature:

typescript
warn(input: LogInput): void;

Parameters ​

ParameterTypeDescription
inputLogInput

Returns:

void