Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Summarize similar logs #13

Open
con-f-use opened this issue Dec 7, 2015 · 0 comments
Open

Feature request: Summarize similar logs #13

con-f-use opened this issue Dec 7, 2015 · 0 comments

Comments

@con-f-use
Copy link

Since you said, you wanted coloredlogs to be 'logging done right', I thought, you might appreciate this unanswered question I hand on logging multiple similar messages.

To summarize: Logging multiple very similar messages in a loop should be summarized in the logs without adding every single message.

import logging
for i in range(999):
    logging.info("much of the same")   # fills logs very quickly

Should give something like:

> INFO:root:foo much of the sam (occured 999 times)

It seems to be a feature that no one else has. Thought you might like the challenge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants