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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:47:28+00:00 2026-06-13T16:47:28+00:00

So for some reason our logger has stopped logging and I am at a

  • 0

So for some reason our logger has stopped logging and I am at a complete loss as to why.
What I’m using in my project is the following:

The log4net configuration:

<?xml version="1.0" encoding="utf-8"?>
<log4net>
  <root>
    <level value="DEBUG" />
    <appender-ref ref="UdpAppender" />
    <appender-ref ref="RollingFile" />
  </root>

  <appender name="UdpAppender" type="log4net.Appender.UdpAppender">
    <remoteAddress value="127.0.0.1" />
    <remotePort value="8180" />
    <layout type="log4net.Layout.XmlLayoutSchemaLog4j">
      <locationInfo value="true" />
    </layout>
  </appender>

  <appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
    <file value="Logs/DA.RA.log"/>
    <lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>
    <appendToFile value="true"/>
    <maxSizeRollBackups value="10"/>
    <maximumFileSize value="10MB"/>
    <rollingStyle value="Size"/>
    <staticLogFileName value="true"/>
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%-5level %date %logger - %message%newline"/>
    </layout>
  </appender>
</log4net>

In my web.config I have the following line:

<section name="log4net" 
         type="log4net.Config.Log4NetConfigurationSectionHandler,log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=a3d255455d3dcb36" 
         requirePermission="false"/>

In my global.asax I have the following line in the application_start method:

string filename = Server.MapPath( @"~\XML\log4net.xml" );
log4net.Config.XmlConfigurator.ConfigureAndWatch( new System.IO.FileInfo( filename ) );

and when I call the logger in any of my pages I use:

private static readonly ILog logger = LogManager.GetLogger(typeof(ReportParameters));

I have tried many different things I found online. These include:

adding the following line to the assembly in my project

[assembly: log4net.Config.XmlConfigurator(Watch=true)]

I tried:

[assembly: log4net.Config.XmlConfigurator()]

I’ve upgraded the version of my log4net.dll from 1.2.10.0 to 1.2.11.0.

I tried adding the log4net appenders to the web.config file instead of in it’s own file, and I still get nothing out of the logging.

  • 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-13T16:47:29+00:00Added an answer on June 13, 2026 at 4:47 pm

    Try opening internal debugging of log4net and check or share the result:

    Note: I made a sample app and used your same log4net.xml file and ConfigureAndWatch statement and it worked without a problem. I think you are having a filename path resolution problem or permission to write problem. Create log folder If you didn’t.

    You need to add to web.config

    <appSettings>
      <add key="log4net.Internal.Debug" value="true" />
     </appSettings>
    
     <system.diagnostics>
      <trace autoflush="true">
       <listeners>
        <add
         name="textWriterTraceListener"
         type="System.Diagnostics.TextWriterTraceListener"
         initializeData="c:\\inetpub\\wwwroot\\log4net.txt" />
       </listeners>
      </trace>
     </system.diagnostics>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Over the weekend, for some reason, one of our servers has decided to start
I'm using Python logging, and for some reason, all of my messages are appearing
So for some reason half our project's beans are marked with @Component and injected
I'm trying to get our login portal working, but for some reason it won't
I think we may have trouble with our existing project. For some reasons we
For some reason, our sharepoint site always goes down on Saturday. It's the stangest
Our company web site generates feeds, but for some reason, white space is being
We just started using jCarousel with our application and we're experiencing some strange UI
For some reason one of our forms reads all UI element data from its
I am embedding Facebook Comment plugin on our site and for some reason the

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.