webapp icon indicating copy to clipboard operation
webapp copied to clipboard

Replace console.log statements with debug statements

Open WCRest opened this issue 9 years ago • 2 comments

We're using console.log calls to debug server-side code. These calls should be made via a logging system that allows the developer to specify the log level (debug, error, warn, log, etc). We should be able to specify to our app via a config file which levels to output and where to stream output (file, stdout, etc)

WCRest avatar Jan 28 '17 07:01 WCRest

Indeeed

Joshua Cano

On Jan 27, 2017, at 23:43, WCRest [email protected] wrote:

We're using console.log calls to debug server-side code. These calls should be made via a logging system that allows the developer to specify the log level (debug, error, warn, log, etc). We should be able to specify to our app via a config file which levels to output and where to stream output (file, stdout, etc)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

joshuacano avatar Jan 28 '17 08:01 joshuacano

I'm working on using winston for this.

beekley avatar Feb 25 '20 04:02 beekley