Sometimes you may need to integrate debug
with a high performance logger, such as pino
. And of course, there is an NPM package for that: pino-debug
. However, if you look at its source code, you will find out that it uses undocumented dirty hacks, which, in my opinion, make it quite fragile. This article demonstrates a much simpler solution.