cabinjs / axe

:axe: Logger-agnostic wrapper that normalizes logs regardless of arg style. Great for large dev teams, old/new projects, and works w/Pino, Bunyan, Winston, console, and more. It is lightweight, performant, highly-configurable, and automatically adds OS, CPU, and Git information to your logs. Hooks, dot-notation remap, omit, and pick of metadata.
https://forwardemail.net/docs/best-practices-for-node-js-logging
MIT License
50 stars 11 forks source link

Replace setCallback with event emitters #11

Closed shadowgate15 closed 2 years ago

shadowgate15 commented 2 years ago

Currently setCallback will replace the callback. Maybe we should use an event emitter that can be listened to instead of replacing the callback. This would allow for multiple listeners.

niftylettuce commented 2 years ago

That would be great. We could also extend from EventEmitter too.

titanism commented 2 years ago

We now have pre and post hooks! v10.0.0+