log4net

Section: (pj)
Updated: 2022-01-06
Index Return to Main Contents

If you aren't seeing log messages, try adding this to your 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:\temp\log4net.txt" />
    </listeners>
  </trace>
</system.diagnostics>

(from https://stackoverflow.com/questions/3121975/log4net-appenders-not-working-in-iis7-5)  

AUTHORS

Paul A. Jungwirth.


 

Index

AUTHORS

This document was created by man2html, using the manual pages.
Time: 22:09:56 GMT, April 06, 2024