We use log4net for logging application exceptions for a variety of web applications. At present we use the RollingLogFileAppender
with a threshold of Info
and SmtpAppender
with a threshold of Warn
.
The problem is that we have no easy way of grouping error log entries by their contents. There are certain errors that we see frequently, and others that come up now and then. We want to be able to automatically track occurrences of the same error.
Conceptually this is simple - a pattern match on the last, say, 50 characters of the log entry should allow us to do this.
Has anyone implemented such a solution, or can anyone recommend a better approach?