Improve logging
See original GitHub issueRight now we’re seeing:
2014-11-28 17:31:53,074 [PID 12] INFO - Running job Every 90 seconds do threaded(<function quoter at 0x7f739e3e00c8>) (last run: 2014-11-28 17:30:22, next run: 2014-11-28 17:31:5$
It’d be nice if this would be slightly more concise. Eg.
2014-11-28 17:31:53,074 [PID 12] INFO - Running every 90 seconds 'threaded(<function quoter at 0x7f739e3e00c8>)' (last run: 17:30:22, next run: 17:31:50)
Issue Analytics
- State:
- Created 9 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
5 Best Logging Practices To Improve Your Code Visibility - TFOT
5 Best Logging Practices To Improve Your Code Visibility · Keep Your Structure Consistent · Add Unique Identifiers · Implement Structured Logging ·...
Read more >5 Techniques to Improve Your Server Logging - OverOps
5 Techniques to Improve Your Server Logging · 1. Hello my (Thread) name is · 2. Distributed identifiers · 3. Dont text +...
Read more >Improving logging performance - IBM
Improving logging performance. An application that commits changes regularly incurs some additional cost because DFSMStvs logs changes.
Read more >Logging Best Practices: The 13 You Should Know - DataSet
Logging Best Practices: The 13 You Should Know · 1. Don't Write Logs by Yourself (AKA Don't Reinvent the Wheel) · 2. Log...
Read more >Fast Logs: Optimize Logging for Large Architectures
In modern systems, logging it's a given. ... actually happens when we do log, what are the impacts on performance, and how can...
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
Is there a way to disable logging all together? I use logging in my application and these logs (for example the job I run every 5 seconds) interfere a lot. (I’ve set my log up as a csv file which I can import in an mysql database every day)
Hi all! Thank you all for the good suggestions. Here is an update on the current state:
DEBUG
, by default you won’t see logs. You can control the visibility of logs through the python logger.On the subject of hiding sensitive information from log messages as raised by @zspatter; I don’t think we should add a built-in switch for removing args from the logs as only few people need this and we want to keep this library simple. However, I would very much like to add add a good example of how to implement this in the documentation. We can experiment on the best way to do this: overriding some method or adding a decorator as described here, I’m open to suggestions. To track this, I’ve created #402