Sorry....

What I mean is, let's say I have a RollingFileAppender, like so:

log4j.appender.OMF=org.apache.log4j.RollingFileAppender

an di set this appender's file to "myfile.txt", and I set the backupindex to 5.

And let's further say I've used up my first 2 backups and now I'm no number 3.  I want 
to programmatically determine which file this logger is currently writing to.

Thanks.

-----Original Message-----
From: Ceki G�lc� [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 12:27 PM
To: Log4J Users List
Subject: Re: getting file path for a logger

At 06:14 PM 10/27/2004, you wrote:
>Hi All,
>
>   Is there a way to have log4J return to me a string containing the file
>path for a specific logger?

What do you mean by a the file path for a specific logger? Loggers are not 
files. Loggers *may* contain one or more appenders which may be of type 
FileAppender. Could you be more specific?


>Thanks.

-- 
Ceki G�lc�

      For log4j documentation consider "The complete log4j manual"
      http://www.qos.ch/shop/products/eclm/  



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to