Currently i am logging log4net internal errors into text file
<system.diagnostics>
<trace autoflush="true">
<listeners>
<add
name="textWriterTraceListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\local\log4netinfo.txt" />
</listeners>
</trace>
</system.diagnostics>
Is there any way to log to windows event log ?
I don't think this is possible. According to the FAQ ,
Internal debugging messages are written to the console and to the System.Diagnostics.Trace system
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.