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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:35:00+00:00 2026-05-25T10:35:00+00:00

I am using log4net in an enterprise system, the system have three tiers: API

  • 0

I am using log4net in an enterprise system, the system have three tiers:

  1. API
  2. Internal Notifications
  3. Integration to 3rd party: External Notifications

The layers talk each other via WCF (wsHttpBinding) and in each layer there is a log file.
When I run a test workflow, each tier executed his job but the logger did not write anything.

Any ideas?

  • 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-25T10:35:01+00:00Added an answer on May 25, 2026 at 10:35 am

    Here are a few ideas:

    1. In each tier, do you have a call to log4net.Config.XmlConfigurator.Configure(...)? In most cases, people use an assembly attribute to do this in the AssemblyInfo.cs/Program.cs/Global.asax.cs/etc. but you can also just call it somewhere in your application startup routine.
      See this page (“When should I log my first message”): http://logging.apache.org/log4net/release/faq.html

    2. If you are using file-based logging, where are you trying to store the log files? – does the target directory exist, and does the user account that is running the tier have write permission to that folder? For web apps, the user account is the App Pool identity, and for Windows Services, the user account is the Login that runs the service. For console and windows apps, the user account may be the user that launches the app.

    If all else fails you can turn on log4net internal debugging which might help: http://logging.apache.org/log4net/release/faq.html (“How do I enable log4net internal debugging”)

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

Sidebar

Related Questions

I'm using log4Net for my logging. I also have the following set... <log4net debug=true>
I have been using Log4Net for several months, and I create a new Logger
We have been using log4net for logging our asp.net web forms application. Our logging
I have created a simple scenario using Log4net, but it seems that my log
I have a console app using log4net (via Castle Windsor). Everything logs fine to
I have noticed, by using log4net, that when calling ISession.Update, it updates all the
I am using log4net 1.2.10.0. I have extended ILog and LogManager to include a
I just started using Log4Net and was looking to see what you have found
I have just begun working on a C# application (using log4net). I'm supposed to
I'm using Log4Net 2.0, I have it working as required but which to add

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.