appirio-tech / tc-core-library-js

6 stars 9 forks source link

tc-core-library-js

Library that contains utils, middlewares etc that can be used by all Topocder Services.

Logger

Sets up a Bunyan logger (https://github.com/trentm/node-bunyan) to use with the application logging. If captureLogs is enabled logs will be pushed to Logentries using le_node library.

Note: Bunyan logger was chosen over winston because winston logger tends to flatten json metadata logged along with strings thus overwriting values with the same key name. You'll have to obtain a token for your app to integrate with logentries

Util

Functions to wrap response based on V3 API specification.

Middleware