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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:35:52+00:00 2026-06-13T01:35:52+00:00

I have a project that includes 10 dlls, each dll uses log4net to log.

  • 0

I have a project that includes 10 dlls, each dll uses log4net to log. The project is not started by me, I got it like this and I need to continue it. Because it’s first time for me working with log4net, I’d like to know how to get, at runtime, the configuration file (xml) and the log file (the file where the logger writes the logs). I stop the application execution using a breakpoint and I’d like to be able, using quick watch window, to get those parameters.

Thanks for help.

  • 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-13T01:35:53+00:00Added an answer on June 13, 2026 at 1:35 am

    Personally, I think you might be going the wrong way about this as you would be better to try to see how log4net is configured and from that determine where it logs the information.

    The usual starting place is the app.config file, which may contain the log4net configuration itself, or a reference to another external file, but configuation can also be done entirely at runtime, so there is no guarantee that there even is a config file, but you could try looking at

    log4net.Config.XmlConfigurator.m_repositoryName2ConfigAndWatchHandler["log4net-default-repository"]
    

    which may show you where the config file is located.

    The filename is tricker, because

    • There could be no file since the logging could go to another device (eg Console or Database)
    • There could be no file since logging is disabled.
    • You could be logging to two or more files
    • The file name could depend on the class/dll
    • Logging could be enabled for one class and disabled for another.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C# project (let's call it Driver) that uses an unmanaged DLL
I have a project that includes a copy of phpMyAdmin. I do development locally
I have a very old project that includes the source from another project directly,
I have a WiX install project that includes IIS setings for virtual directory and
I have a project that I've added to my Jenkins server. The project includes
I have a .DLL that i include in my Visual Studio 2008 project. The
I have a project that may be started on local machine with ./manage.py runserver
Visual studio by default copies all dlls' to each project's bin folder. This also
I have to compile multiple dlls (around 100) for my project. Each project/build will
So I have a CCNET project that successfully builds until I include a RoboCopy

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.