question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Right 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:closed
  • Created 9 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
DieterKoblenzcommented, Sep 29, 2015

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)

0reactions
SijmenHuizengacommented, Dec 14, 2020

Hi all! Thank you all for the good suggestions. Here is an update on the current state:

  • Log level for all messages is now DEBUG, by default you won’t see logs. You can control the visibility of logs through the python logger.
  • The subject of logging received its own documentation page here: https://schedule.readthedocs.io/en/latest/logging.html I welcome everyone to create PR’s adding more examples to that page
  • Thanks to @zcking we now have PR #193, which adds some more log messages

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found