SAP / cf-nodejs-logging-support

Node.js Logging Support for Cloud Foundry provides the creation of structured log messages and the collection of request metrics
https://sap.github.io/cf-nodejs-logging-support/
Apache License 2.0
43 stars 22 forks source link

using req. context logger in qunit test with nock #71

Closed 4effo closed 3 years ago

4effo commented 3 years ago

Hello, I have a small node application and we use this nice library since some time on SCP. The app acts more or less, as proxy to some other API's. We use express.

I would like to start using the request context logger, as it nicely handled the correlation id header. Anyway, in my qunit tests (I use nock) I have to also bound the logger context to the request.

Is that possible? Do you have some example for it?

Thanks and best regards!