DEV Community

Discussion on: Logging REST API

 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

with debug

Can you explain more? I do realize the existence of Morgan and Winston, though.

There is also pino-debug, but I don't see it as helpful. Too much non-useful information.

Too much text, and it will be trimmed.

Have you tried, something like this. The error log size will destroy console output in VSCode. I believe it won't destroy chrome://inspect, though. (I edited the main post on how I made it work.)

await DbModel.insertMany(ARRAY_OF_HUNDREDS_OF_DUPLICATES, { ordered: false })