jesuspc / node_club-dictionaries

A dictionaries microservices for Workshare's Node club
1 stars 0 forks source link

Logging #26

Open jonathancecil opened 8 years ago

jonathancecil commented 8 years ago

Make sure we have enough detail logged to diagnose errors, unauthorised requests, etc and for very verbose logs successful requests

jesuspc commented 8 years ago

We still haven't decided which library to use. I personally liked the one that was chosen by Bruno's team but I am sure there are others.

I don't know how to structure the logging system. One option that comes to my mind is to define a global logger and logger config in the main box.js and subloggers and sublogger configs at each subbox, then inject them to anything that would need it.

Do not forget to unit tests them!

jesuspc commented 8 years ago

Assigning it to myself while Jonathan is busy

jesuspc commented 8 years ago

I've added log4js to the repo and included some logging statements here and there. Any advise about places that deserve a log line?