Logrus: Suppress duplicate logs

Created on 10 Dec 2015  路  2Comments  路  Source: sirupsen/logrus

I have a feature request:

Many go based systems utilize logrus which is great, but well... it often makes duplicate log entries and they can easily grow large and in some environments it effects IO as well. It would be nice if this could be suppressed in some way up here in the logging system.

Thanks!

Most helpful comment

Having some ready-made way to throttle or deduplicate log messages (at least adjacent) would be nice when same error happens very often (i.e. when some server has to drop incoming packet because they are arriving too fast and prints a warning every time packet is dropped)

All 2 comments

I think those are application bugs, and I don't think this logger should be compensating for applications duplicating log events.

Having some ready-made way to throttle or deduplicate log messages (at least adjacent) would be nice when same error happens very often (i.e. when some server has to drop incoming packet because they are arriving too fast and prints a warning every time packet is dropped)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

demizer picture demizer  路  4Comments

piotrkowalczuk picture piotrkowalczuk  路  4Comments

kaushikchaubal picture kaushikchaubal  路  5Comments

taherv picture taherv  路  4Comments

SergeiVasilenko picture SergeiVasilenko  路  3Comments