RE: Two logs have the same appenders

2014-10-06 Thread Rob Richardson
Thanks very much for your reply and examples. RobR From: Ronen Mashal [mailto:rmas...@magicsoftware.com] Sent: Sunday, October 05, 2014 12:29 AM To: Log4NET User Subject: Re: Two logs have the same appenders Hello Rob, If you want to write the same messages to two separate files you should do

RE: Two logs have the same appenders

2014-10-06 Thread Walden H. Leverich
then in the code: ILog logger1 = log4net.LogManager.GetLogger(typeof(classname)); ILog logger2 = log4net.LogManager.GetLogger(typeof(classname).FullName + .sepcial); The only thing I'd add here is the question of whether you put the differentiator special at the end or the beginning. It's

Re: Two logs have the same appenders

2014-10-04 Thread Ronen Mashal
Hello Rob, If you want to write the same messages to two separate files you should do the following: 1) Define two file appenders in the configuration file, each writing to a different file. 2) Create a logger (or specify in the root logger) that it uses both file appenders, something like this: