Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Invalid
-
1.2.10
-
None
-
None
-
None
-
visual studio 2008 with .net 3.5
Description
Hi,
i have tried to use log4net in a windows service on VS2008 - .Net Framework: 3.5,
I added the following in the app.config file :
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="FileAppender" type="log4net.Appender.FileAppender">
<file value="C:\logfile.txt" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger [%property
] - %message%newline" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="FileAppender" />
</root>
</log4net>
but i am getting the below message:
"Message 5 Could not find schema information for the element 'log4net'.