You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -333,6 +333,26 @@ Jobs must:
333
333
- Implement the `execute` method
334
334
- Be exported as default
335
335
336
+
## Logging
337
+
338
+
You can pass a logger to the queue manager for debugging or monitoring. The logger must be compatible with the [pino](https://github.com/pinojs/pino) interface.
339
+
340
+
```typescript
341
+
import { pino } from'pino'
342
+
343
+
const config = {
344
+
default: 'redis',
345
+
adapters: {
346
+
/* ... */
347
+
},
348
+
logger: pino(),
349
+
}
350
+
351
+
awaitQueueManager.init(config)
352
+
```
353
+
354
+
By default, a simple console logger is used that only outputs warnings and errors.
355
+
336
356
## Benchmarks
337
357
338
358
Performance comparison with BullMQ using realistic jobs (5ms simulated work per job):
0 commit comments