logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheng <chen...@gmail.com>
Subject Re: RollingFileAppender file name
Date Wed, 21 Jun 2006 22:05:57 GMT
This works. Thanks!

On 6/21/06, Georg Jansen <Georg.Jansen@faktnet.com> 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: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
> supported.".
>
> I am using version 1.2.10.
>
> Thanks.
>
>

Mime
View raw message