Log4Net and .NET 4.0 -
There is no log-4 net release for some time. It has not offered any problem with 3.5, but what about NAT4? Has anyone heard of any rebilling to release version 4 to support the framework? .NET 4. Projects You can still use log4net.
The target platform for ".NET Framework 4" needs to be changed ... "
Correct but you have to enter the line
& Lt; / Startup & gt;
below the configuration file (after log 4 net setup):
& Lt; / ConfigSections & gt; & Lt; Log4net & gt; & Lt; Appender name = "file explorer" type = "log4net.epadder.php fileper" & gt; & Lt; File value = "logfile.txt" /> & Lt; AppendToFile value = "true" /> & Lt; Layout type = "log4net.Layout.PatternLayout" & gt; & Lt; Conversion pattern value = "% date:% -5level -% message% newline" / & gt; & Lt; / Layout & gt; & Lt; / Appender & gt; & Lt; Root & gt; & Lt; Level value = "DEBUG" /> & Lt; Epander-Reef Ref = "filepeeder" /> & Lt; / Root & gt; & Lt; / Log4net & gt; & Lt; Startup & gt; & Lt; Supported serial version = "v4.0" sku = ".NETFramework, version = v4.0" /> & Lt; / Startup & gt; & Lt; / Configuration & gt; Tested with Log4net 1.2.10.0: You must log in to the assembly line: assemblyinfo.cs (i forgot)
Comments
Post a Comment