Open jonathancecil opened 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!
Assigning it to myself while Jonathan is busy
I've added log4js to the repo and included some logging statements here and there. Any advise about places that deserve a log line?
Make sure we have enough detail logged to diagnose errors, unauthorised requests, etc and for very verbose logs successful requests