restify / node-restify

The future of Node.js REST development
http://restify.com
MIT License
10.71k stars 981 forks source link

feat: allow alternate name for request id in logs #1950

Closed josephharrington closed 1 year ago

josephharrington commented 1 year ago

Right now the child loggers add the request id attribute under the field name req_id. This change adds an option to override the field name.

This allows more customizable logs for easier integration with backend logging frameworks.