logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Richardson <RDRichard...@rad-con.com>
Subject RE: Writing to two different log files
Date Fri, 27 Jun 2014 13:37:21 GMT
I have succeeded!

I had to do two things.  First, I had to point the ConfigurationAndWatch method to a file
that actually existed.  I had omitted a forward slash before "multiple_files.xml".  Second,
I had to add the attribute "additivity" and set it to false in the logger definitions:

<logger additivity = "false" name="BaseLogger">
  <level value="DEBUG" />
  <maximumfilesize value="256KB" />
  <param value="DEBUG" name="Threshold" />

  <appender-ref ref="RollingFile" />
</logger>

Thanks for listening!

RobR

Mime
View raw message