15ambm / ToDoAPI

A simple ToDo list API made using Node.JS. This was a great learning exercise for me while I developed my JavaScript and Node skills.
1 stars 0 forks source link

Add a Logger #7

Closed jphilipstevens closed 5 years ago

jphilipstevens commented 5 years ago

You can add a logger instead of console.log. This is typical in other production apps

  1. Pick a logger lib (Winston, Bynun, Pino, etc)
  2. Make a logger module to setup the logger
15ambm commented 5 years ago

So I added a logger (winston) but I am unsure of the best spots for logging, seems pretty subjective. Any opinions?