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 3607408
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:22:19+00:00 2026-05-18T21:22:19+00:00

I think it is a standard question, but didn’t find any generic one on

  • 0

I think it is a standard question, but didn’t find any generic one on SO.

Logging being core to debugging and other diagnostics warrants a good modular and scalable approach for enterprise apps. I am sure everyone here would have used such logging module at some time int heir coding careers.

So i would like to know best practices, best free tools/code used for logging in .NET apps.

  • Like whether to send log to file or DB ?

  • Should it be mostly trace-lines on exception catch and other imp. log points ? When all to use windows event logging ?

  • There is certain data like a jobID to identify the logs of that job’s run, but problem is that this jobID is not available to every class, so logs from those classes are orphans without any jobID identifier. How to set such data (jobID) at the topmost method and then all logs emitted from all child methods get tagged with this data.

  • How to have multiple log files with ease, new file spawned on reaching size limit ?

  • How best to use system.diagnostics package ?

.. Any other thing i missed or any more helpful points about logging in general, pl add.

  • 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-05-18T21:22:20+00:00Added an answer on May 18, 2026 at 9:22 pm

    Use Enterprise Library for logging your exceptions, errors, traces, e.t.c.
    It can redirect your log entries to several sinks like Windows Event Log, File, Database, e.t.c.

    Your code doesn’t have to worry about target format and storage of log entry. You can configure all of that by modifying the config file.

    The actual decision of where the logs go depends on the environment, data and its importance.
    If you want to be able to search and query the logs then DB is the option.
    If the sys admin uses Windows Event Log for viewing all logs then you can redirect your logs there.

    Logging strategy varies from organization to organization and I believe your application shouldn’t dictate it instead allow it to be configurable for which Logging Application Block or any other similar logging framework would be best choice.

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

Sidebar

Related Questions

This could be an amazingly dumb question, but .... I don't think a standard
This question is related to this one but I think should be asked separately.
This question is similar to this one , but hopefully it will pick up
This is a very standard newbie question, but I am looking for an expert
I think my question has been asked here before, I did read them but
Ran accross the following code in an article and didn't think it was standard
This may be an obvious question, but I think there may well be multiple
I am using Objective-C and Java for this, but I think the question is
I have a standard (I think) web project developed with the eclipse IDE. I
When iterating over a standard container, do you think it's a good idea to

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.