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: 02:09:34 GMT, November 21, 2024