Logger service improvements.
See original GitHub issueI would like to open discuss about logger, so far we have an Logger service in @nest/common
, as it might be enough for development purpose, now it’s kind of “thorn” fe: there is no other possibility to turn off messages from nest instead of set NestEnvironment.RUN
to TEST
, but it might imply some other things now or in future. Im not saying the Logger service is bad, but I would like to suggest to evolve this idea to add fe: a debug package and inside use them.
I will love to run app with DEBUG=nest.*
and get all of the logs from nest when it’s necessary.
What do you think about this?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
13 best practices to improve your logging
This article provides some insights on how to improve your logging practices in order to make troubleshooting sessions more productive.
Read more >5 Techniques to Improve Your Server Logging
1. Hello my (Thread) name is · 2. Distributed identifiers · 3. Dont text + drive. Don't log + loop · 4. Uncaught...
Read more >Simplifying log management with logging as a service
Logging as a Service is a simple, highly scalable solution for managing all of your logs in a central, systematic way.
Read more >How to Improve Your App Performance With Log Monitoring
Web logs can also help you monitor page performance and provide early detection of network outages and protocol failures, failed services and ...
Read more >Building A Central Logging Service In-House
That's why we developed our own in-house Central Logging Service tool (CLS) to record all important events logged during a session.
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
@Kamshak the idea behind debug package instead anything else stand for usability. Most of the problems is about the space, the space you’re runing out of. Im not saying that the Nest logger is the most verbose logger that you ever seen. But I have hope it would be, I have hope, the verbose opestion should scream on the scen ❤️
To be honest, I fallow in love with debug package because It allows me to turn on the debug statements of packages that I would like to investigate, many times in my life Im using winston pre-configured as syslog with rsyslog where I send logs out of the host, and without possibility (less complex) to send Nest logs to the my logger it’s kind of complex. You can ask my why? The answer is very simple, recurrence, using the same schema across the builds and projects, solve your time and you can extend your actual knowledge to not discovered layer. I know it sound like utopia, especially the last part, you can just believe me.
It’s it, more or less, I try to explain my point of view.
Im open to any question, regards.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.