This works. Thanks!

On 6/21/06, Georg Jansen <[EMAIL PROTECTED]> wrote:
Cheng,

You can use:

<File type="log4net.Util.PatternString"
value="c:\\Logfiles\\%property{log4net:HostName}.log" />


Best regards
Georg
http://www.l4ndash.com - Log4net Dashboard


-----Original Message-----
From: Cheng [mailto:[EMAIL PROTECTED]
Sent: 21. juni 2006 22:45
To: Log4NET User
Subject: RollingFileAppender file name

Is it possible to use "Conversion Pattern" in the file name of the
RollingFileAppender? For example, I want the logfile name like:
hostname.appname.log. So if the same application runs at different
machine, it will have different logfile.

How can I setup this in config file?

I tried following:
<param name="File"
value="C:\\Logfiles\\%property{log4net:HostName}.Test.log" />

It didn't work. Internal debug says:"The given path's format is not
supported.".

I am using version 1.2.10.

Thanks.


Reply via email to