HT2-Labs / jscommons

A package of common functions used in our JavaScript applications.
MIT License
0 stars 4 forks source link

Add logger to service and repo configs. #8

Open ryasmi opened 6 years ago

ryasmi commented 6 years ago

It's quite useful to have the logger (Winston.LoggerInstance) available in the service and repos. Adding this would break the compilation for dependents of jscommons.

ryasmi commented 6 years ago

Might also want to add the tracker to express presenter, service and repo configs.

ryasmi commented 6 years ago

Might also want to add a transactionId to Member Options and create a handler HOF for Express handlers that catches errors and creates the transactionId to be logged when catching errors and to be passed into the handlers.

ryasmi commented 6 years ago

Should also remove body parser! At least the JSON one to prevent "leaky mixins".