How can I filter certain messages in log4net
-
-
Hello, I'm using a 3rd party that uses log4net in order to log its messages. I'm interested only on those messages that do not include "UnwantedTextExample". How can I configure the config.log4net in order to not log those messages? Thanks, Berlus
I work with some legacy applications that still log to flat file with log4net as well. As I can't change the logging from the source side, I have resorted to opening the logs in Excel(as ours are comma delimited) and then I simply use the data processing features (Sorting and Filter) to find the entries I'm interested in. It can be quite frustrating, I know, but that's why we've been converting everything to use database error logging instead.
I wasn't, now I am, then I won't be anymore.
-
Hello, I'm using a 3rd party that uses log4net in order to log its messages. I'm interested only on those messages that do not include "UnwantedTextExample". How can I configure the config.log4net in order to not log those messages? Thanks, Berlus
For logfile analysis you might want to try Chainsaw Read here: http://www.google.com/search?sitesearch=*.apache.org&q=loggin#sclient=psy&hl=de&sitesearch=*.apache.org&q=logging+log4net+analysis+chainsaw Best Regards, Manfred
-
For logfile analysis you might want to try Chainsaw Read here: http://www.google.com/search?sitesearch=*.apache.org&q=loggin#sclient=psy&hl=de&sitesearch=*.apache.org&q=logging+log4net+analysis+chainsaw Best Regards, Manfred
-
Hello, I'm using a 3rd party that uses log4net in order to log its messages. I'm interested only on those messages that do not include "UnwantedTextExample". How can I configure the config.log4net in order to not log those messages? Thanks, Berlus
One of the key features of log4net is that you are able to configure it to use any log appender - even one you have written yourself. It should be fairly simple to write your own appender that uses discards these entries, and use this just by adding the appropriate configuration entries. I demonstrate a custom appender in this[^] blog entry.
I'm not a stalker, I just know things. Oh by the way, you're out of milk.
Forgive your enemies - it messes with their heads