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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:27:21+00:00 2026-05-25T16:27:21+00:00

You implement a Library called LogLibrary which needs configuration values, To retrieve the configuration

  • 0
  • You implement a Library called LogLibrary which needs configuration values,
  • To retrieve the configuration values you implement your own System.Configuration.IConfigurationSectionHandler,
  • So in the App.config file of the Program using LogLibrary, you want to find something like:
<configuration>
    <configSections>
        <section name="LogLibrary" type="Class, Namespace"/>
    </configSections>
    <LogLibrary>
        <!-- Directory where daily log files will be created. -->
        <LogDirectory>C:\Logs</LogDirectory>
        <!-- Insert other values here -->
    </LogLibrary>
</configuration>

Question: What is the best way to indicate to the users of the LogLibrary what needs to be present in App.config ?

I personally provide a README.txt file (included in the Library’s VS project) with the Library. But i find this solution to be “amateur”. Do you guys have better practices ?

  • 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-25T16:27:22+00:00Added an answer on May 25, 2026 at 4:27 pm

    You would not need a readme.txt, just include an app.config in your library with sample values as you have shown above and mention this in the documentation. Developers will notice this either in your source file or in the documentation you provide online or offline and will copy that section (same as above) in their app.config or web.config.

    This is how it normally goes for Log4Net, that you google and find examples on their websites.

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

Sidebar

Related Questions

I'm working on a thread library which implement user level threads (i have something
i would like to implement 'drawing modes' (in my own graphics library). That is
I am using the jQuery library to implement drag and drop. How do I
I want to implement a docking library in wpf with behavior similar to Adobe
I have to implement a IExceptionHandler for the Enteprise Library 4.1. In my particular
How do I implement AES encryption with the java bouncy castle library? Example code
I would like to implement a map simmilar to this: http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/examples/advanced_example.html One of the
I have a data access library that has a few classes that all implement
I’m trying to implement a SOAP webservice in Python 2.6 using the suds library.
I need a C# library to deal with matrices. It should implement singular value

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.