Home > @opengovsg/rate-limit > Logger
Logger interface
The subset of a structured logger this package needs.
Any logger whose warn/error accept { message, context?, error? } satisfies it, including the logger from @opengovsg/logging.
Signature:
typescript
export interface LoggerMethods
| Method | Description |
|---|---|
| error(input) | |
| warn(input) |