Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8054625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:11:29+00:00 2026-06-05T08:11:29+00:00

I know I can write to the EventLog and query it. I would like

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:11:31+00:00Added an answer on June 5, 2026 at 8:11 am

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know how can i write to a file within Application.
How can I write this query with QueryOver. select * from User usr where
As we know, we can use the class EventLog to write event logs, but
So I know I can write my own HTML-encoding function like this: function getHTMLEncode(t)
I'd like to know how can write an efficient version of quicksort where list
I have a text area where user can write his SMS. You all know
I need to write a simple query in mySQL that would use MIN() in
I know you can write a statement like: if (num1 != a && num1
I know I can simply write a while loop for this.. I'm just curious
i know there are several questions about regex recursion in .net. I can write

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.