Q:

Can log4net entries be queried?

I know I can write to the EventLog and query it. I would like to implement the ability for the user to select a menu item that will query all Warning and Error msgs connected to my app and send those to me.
I can do all of this with C# and the Event Log. Is the same possible with log4net? Obviously I can log Warning and Error msgs with log4Net, but can I then query the log4Net "database"? Or are the log msgs not even saved?

A:

You can choose to use different file appenders in log4net to write to different log files. I currently have one for errors and one for trace logging so that I can log my code's activity.
Check out this link for examples on how to implement this - http://geekswithblogs.net/ontheledge/archive/2009/09/23/logging-with-log4net.aspx
Also, if you wish to parse your text log files see this old StackOverflow question regarding parsing log4net files for error codes - Parse log files programmatically in .NET

