node.js - Why use different debug modules depending on production/development status? -


so express best practices page, among others, states 1 should use debug module debugging , winston logging app activity in production.

  • why 1 not use winston all?
  • ...and if using both how 1 decide goes in winston debug vs debug's debug?

express best practices / debug module / winston module

it's not big deal library use log/debug, many express applications use neither winston nor debug. debug has convenience features makes easier use on using winston debugging. use winston, , write own wrapper around debug() method in order replicate exact functionality of debug module. if use both, use debug module log messages used strictly developing , diagnosing bugs, , use winston log messages file/database/service while application in production.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -