Generate identical files from log4net -
similar question here different
like attached link trying log4net output multiple (x2) files. opposed link looking have same information sent both files. reason first log file being generated (logs.log) , not second (logstest.log)
can shine light on me please?
<log4net> <appender name="rollingfileappender" type="log4net.appender.rollingfileappender"> <file value="logs.log" /> <appendtofile value="true" /> <rollingstyle value="size" /> <threshold value="info" /> <filter type="log4net.filter.levelrangefilter"> <levelmin value="info" /> <levelmax value="off" /> </filter> <maxsizerollbackups value="30" /> <maximumfilesize value="50mb" /> <staticlogfilename value="true" /> <layout type="log4net.layout.patternlayout"> <conversionpattern value="%date [%thread] %-5level %logger %p{url} %p{usr} %p{addr} – %message%newline" /> </layout> </appender> <appender name="rollingfileappender1" type="log4net.appender.rollingfileappender"> <file value="logstest.log" /> <appendtofile value="true" /> <rollingstyle value="size" /> <threshold value="info" /> <filter type="log4net.filter.levelrangefilter"> <levelmin value="info" /> <levelmax value="off" /> </filter> <maxsizerollbackups value="30" /> <maximumfilesize value="50mb" /> <staticlogfilename value="true" /> <layout type="log4net.layout.patternlayout"> <conversionpattern value="%date [%thread] %-5level %logger %p{url} %p{usr} %p{addr} – %message%newline" /> </layout> </appender> <logger name="placegen"> <level value="all" /> <appender-ref ref="rollingfileappender" /> <appender-ref ref="rollingfileappender1" /> </logger> </log4net>
would have been smart have local operator restart application first
Comments
Post a Comment