# ILogger interface · @imqueue/pg-cache

Source: https://imqueue.org/api/pg-cache/latest/pg-cache.ilogger/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-cache 5.0.6 — generated reference, not hand-written

Minimal logger interface accepted by this package. Structurally compatible with the console object and with `@imqueue` loggers, so any of them can be passed without depending on `@imqueue/core.`

**Signature:**

```typescript
export interface ILogger 
```

## Methods


| Method | Description |
| --- | --- |
| [error(args)](https://imqueue.org/api/pg-cache/latest/pg-cache.ilogger.error/) | Unrecoverable problem. |
| [info(args)](https://imqueue.org/api/pg-cache/latest/pg-cache.ilogger.info/) | Informational message. Used for cache hits, misses and trigger installation, and only emitted when `PG_CACHE_DEBUG` is on. |
| [log(args)](https://imqueue.org/api/pg-cache/latest/pg-cache.ilogger.log/) | General-purpose message, equivalent to `console.log`. |
| [warn(args)](https://imqueue.org/api/pg-cache/latest/pg-cache.ilogger.warn/) | Recoverable problem. Every swallowed cache error is reported at this level, so a redis outage shows up here rather than as a thrown error. |

