tl-its-umich-edu / canvas-course-manager-next

Canvas Course Manager Next: A redesign of the existing CCM application. It extends Canvas features, makes cumbersome features easier to use, and adds new features.
8 stars 9 forks source link

Adopt a logging approach for server #38

Closed ssciolla closed 3 years ago

ssciolla commented 3 years ago

Thus far we've been mainly using console.log and console.error, but there are likely better ways to approach this so that we can include timestamps and log origin, as well have access to more levels like debug.

Log4js and winston seem like popular options with TypeScript support.

In addition, those of us from Django backgrounds will miss request logging. There is express middleware for this; morgan seems like a popular option.

pushyamig commented 2 years ago

Test passes. I don't see any console log message in the server folder of ccm_web and a configuration of log level is established as well