You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Barvaz Barvaz <ba...@gmail.com> on 2010/01/26 14:00:55 UTC

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!

Re: is it possible to name a file using current process id using a File Appender?

Posted by Barvaz Barvaz <ba...@gmail.com>.
Thanks, I'll check it out!

On Tue, Jan 26, 2010 at 3:08 PM, Wolfgang <wo...@wollinet.com> wrote:

>  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!
>

RE: is it possible to name a file using current process id using a File Appender?

Posted by Wolfgang <wo...@wollinet.com>.
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!