[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    RE: getting file path for a logger
From:       "Marc Esher \(4-2060\)" <mesher () argusgroupinc ! com>
Date:       2004-10-27 20:13:36
Message-ID: 273D951D7ED9EB4A880026EB098F3E0196410A () argus-ex1 ! argusgroupinc ! com
[Download RAW message or body]

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

Marc,

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>
        cc: 
        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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic