<log4net debug="true"> <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> <file value="C:\\Logs\\MyProject\\" /> <appendtofile value="true" /> <rollingstyle value="Date" /> <datepattern value="yyyy-MM-dd'.log.txt'" /> <staticlogfilename value="false" /> <layout type="log4net.Layout.PatternLayout"> <conversionpattern value="%date %level %type{1}.%method - %message%newline" /> </layout> </appender> <root> <level value="INFO" /> <appender-ref ref="RollingLogFileAppender" /> </root> </log4net>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)