BunyanLogger extending built in Logger
See original GitHub issueLooking to use the BunyanLogger in this context: https://docs.nestjs.com/techniques/logger#injecting-a-custom-logger
Where I can do setContext
, which seems to be provided by the built in Logger
. Could the BunyanLogger extend that to provide this, or is it more involved?
Looks like BunyanLogger takes a context as the second param to log
, but in a class scenario it’s tedious to have to set that every time in the class.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Wiredcraft/bunyan-logger - GitHub
Extend Bunyan to have default options and predefined streams etc. - GitHub - Wiredcraft/bunyan-logger: Extend Bunyan to have default options and predefined ...
Read more >bunyan-logger - npm
Bunyan Logger. Build Status Coverage Status. Extend Bunyan to have default options and predefined streams etc.
Read more >Wrapper over bunyan logging library - node.js - Stack Overflow
You can extend bunyan's functionality by creating a writeable stream : ... Create the bunyan logger */ const log = bunyan.
Read more >Bunyan Logging With Production Troubleshooting in Mind
An object literal can be passed to the bunyan log methods, ... in case you are extending the native Error object with any...
Read more >Class LoggingBunyan (4.2.1) | Node.js client library
This module provides support for streaming your Bunyan logs to [Stackdriver Logging](https://cloud.google.com/logging).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @knownasilya. if you want to add more context in your logs. you can try using the extraFields arg.
And inside of any service, you can use:
Yes. I used it in the main directly and then I used it separately as a service.