by tbarron » Tue May 17, 2011 9:26 pm
In a software package I work on, we are considering replacing the internal logging subsystem we have currently with syslog calls. Our thinking was that we would install rsyslog (or syslog-ng, but rsyslog is the current favorite) along with our package when setting up a new installation. In part, this would be to lighten our load in terms of the code we maintain (i.e., greatly reducing the logging subsystem) but it's also partly because of features like "Last message repeated..."
We look at our log files to help us troubleshoot problems at customer sites. Each log message either contributes information to the troubleshooting effort or it's noise that makes it harder to see what's actually going on. Since failure modes are not predictable, it's always possible, even with the most careful crafting of outgoing log messages, to get storm conditions in which the same message is sent over and over. While we try to avoid such situations, when they happen, it's much more helpful to see "Last message repeated 10000 times" rather than 10000 occurrences of the message.
Thanks for reading...
Tom