logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Georg Jansen" <Georg.Jan...@FaktNet.com>
Subject RE: RollingFileAppender file name
Date Wed, 21 Jun 2006 21:31:59 GMT

You can use:

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

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

-----Original Message-----
From: Cheng [mailto:chenghf@gmail.com] 
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

I am using version 1.2.10.


View raw message