TecKnow / muster-tools

A package for assigning players to tables at multi-table, walk-in gaming events.
GNU General Public License v3.0
0 stars 0 forks source link

Convert console.log() to the debug package #47

Open TecKnow opened 3 years ago

TecKnow commented 3 years ago

In most programming environments I would use a logging package to control program output, especially in production. Python and many other languages have them as part of the standard library. JavaScript and Node do not, so I was unclear on what package to use.

The Express web server documentation suggests a package called debug. It's documentation is below. Investigate it, and if appropriate, apply it.

https://www.npmjs.com/package/debug

TecKnow commented 3 years ago

For logging in production, one of the following two libraries compared at the link below is recommended.

https://strongloop.com/strongblog/compare-node-js-logging-winston-bunyan/