RE: Programatically specify output file.

2009-08-05 Thread Bernhard Heinzel
Thank you Ross. Works perfectly fine. Best Regards. Bernhard Date: Wed, 5 Aug 2009 07:54:35 -0500 Subject: Re: Programatically specify output file. From: [email protected] To: [email protected] A quick google search yielded this: http://stackoverflow.com/questions/571876

Re: Programatically specify output file.

2009-08-05 Thread Ross Hinkley
A quick google search yielded this: http://stackoverflow.com/questions/571876/best-way-to-dynamically-set-an-appender-file-path You can leverage the %property{} part of log4net to accomplish what you're asking. Unfortunately, if you have multiple appenders all using that property, it will be cha

Programatically specify output file.

2009-08-05 Thread Bernhard Heinzel
Hi, is it possible to confige a RollingFileAppender in the configfile and specify the output file programatically? My usecase is that I want to log in different files (e.g. agent.5.out, agent.4.out, ...) but the appender which will be used should be configured in the config file. Any Suggent