Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-514

log4net killing w3wp worker process in IIS

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.2.15
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:
      None
    • Environment:
      Windows 8 / Server 2012. Using Common.Logging and Common.Logging1215

      Description

      After upgrading to 1.2.15 several dev's have reported W3WP crashing. Attached a debugger returns a NRE inside of log4net.

      <?xml version="1.0" encoding="utf-8" ?>
      <configuration>
      <log4net>
      <appender name="StandardRollingFileAppender" type="log4net.Appender.RollingFileAppender">
      <lockingModel type="log4net.Appender.FileAppender+InterProcessLock"/>
      <file value="C:\Logs\Client.log" />
      <appendToFile value="true" />
      <rollingStyle value="Size" />
      <maxSizeRollBackups value="10" />
      <maximumFileSize value="2MB" />
      <staticLogFileName value="true" />
      <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date || %thread || %-5level || %logger || %property

      {CorrelationID}

      |*| %property

      {Id1}

      |*| %property

      {Id2}

      |*| %property

      {Id3}

      |*| %message%newline" />
      </layout>
      </appender>
      <appender name="DebugAppender" type="log4net.Appender.DebugAppender">
      <immediateFlush value="true" />
      <layout type="log4net.Layout.SimpleLayout" />
      </appender>
      <root>
      <level value="ERROR" />
      <appender-ref ref="DebugAppender" />
      </root>
      <logger name="RootNameSpace" additivity="false">
      <level value="DEBUG" />
      <appender-ref ref="StandardRollingFileAppender" />
      <appender-ref ref="DebugAppender" />
      </logger>
      </log4net>
      </configuration>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aaronmell Aaron Mell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: