logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Esher \(4-2060\)" <mes...@argusgroupinc.com>
Subject RE: getting file path for a logger
Date Wed, 27 Oct 2004 20:13:36 GMT
Ahh..that's what I was hanging up on. Thanks!

-----Original Message-----
From: Tom.Goetze@kp.org [mailto:Tom.Goetze@kp.org] 
Sent: Wednesday, October 27, 2004 3:13 PM
To: log4j-user@logging.apache.org
Subject: RE: getting file path for a logger


log4j only ever considers the current file to be the file without the 
numbers (the ones with numbers are the old data--never current).

So, if you have the property value set to myFile.txt, then that is the 
only file that is ever the "current" file.
If it creates myFile.txt.1, then that is the most recent log entries 
compared to the current file of myFile.txt.

If there is a myFile.txt.2, then it is older data than both myFile.txt.1

and the current file of myFile.txt.

Tom Goetze

"Marc Esher \(4-2060\)" <mesher@argusgroupinc.com>
10/27/2004 12:02 PM
Please respond to "Log4J Users List"

        To:     "Log4J Users List" <log4j-user@logging.apache.org>
        Subject:        RE: getting file path for a logger

Thanks Matt. 

Before I try this out myself, which will be in the next couple of hours:
will this return the value of "File" as set in the properties, or will
it return the current file being logged to (i.e. myFile.txt.1)?

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message