logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wolfgang" <wolfg...@wollinet.com>
Subject RE: is it possible to name a file using current process id using a File Appender?
Date Tue, 26 Jan 2010 13:08:16 GMT
Hi Barvaz,

 

have a look in this old post:

 

http://www.mail-archive.com/log4net-user@logging.apache.org/msg03984.html

 

Regards,

Wolfgang

 

 

From: Barvaz Barvaz [mailto:barvaz.metugan@gmail.com] 
Sent: Dienstag, 26. Januar 2010 14:01
To: log4net-user@logging.apache.org
Subject: is it possible to name a file using current process id using a File
Appender?

 

Hi,

I'd like to configure a file appender, naming the file with the current
process ID (windows environment).
For instance, if the current process' ID is 1234, I'd like the log file to
have the name mylog1234.txt.
I know it can be done programmatically (by code), but I wonder, is it
achievable through configuration file?

Thanks!


Mime
View raw message