RollingFileAppender (Log4net) is not accepting the filenamePattern

DriDri

New Member
I expect to have 10 files called Console.1.log, Console.2.log,Console.3.log... etc.What i got is: Console.log.1, Console.log.2... same as when i don't put any settings...I've tried to change the namespace of \[code\]`<appender name="FileAppender" type="log4net.Appender.RollingFileAppender"> <file value="http://stackoverflow.com/questions/11142921/${APPDATA}//product//Console.log" /> <appendToFile value="http://stackoverflow.com/questions/11142921/true" /> <rollingStyle value="http://stackoverflow.com/questions/11142921/Size" /> <MaxSizeRollBackups value="http://stackoverflow.com/questions/11142921/10" /> <MaximumFileSize value="http://stackoverflow.com/questions/11142921/1KB" /> <staticLogFileName value="http://stackoverflow.com/questions/11142921/true" /> <layout type="log4net.Layout.PatternLayout" > <conversionPattern value="http://stackoverflow.com/questions/11142921/%date{yyyy-MM-dd HH:mm:ss} %-5level %logger %message%newline" /> </layout> <threshold value="http://stackoverflow.com/questions/11142921/DEBUG" /><rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <param name="activeFileName" value="http://stackoverflow.com/questions/11142921/${APPDATA}//product//Console.log"/> <param name="fileNamePattern" value="http://stackoverflow.com/questions/11142921/${APPDATA}//product//Console.${%i}.log"/> <param name="maxIndex" value="http://stackoverflow.com/questions/11142921/0"/> <param name="minIndex" value="http://stackoverflow.com/questions/11142921/10"/></rollingPolicy>`\[/code\]
 
Back
Top