logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jw...@ilstechnology.com
Subject Re: Problem with RollingFileAppender
Date Thu, 03 Mar 2005 13:42:40 GMT


If you specify an exact path for the log file in the properties file, then
the logging will be immune to changes in the cwd.

My guess is that you used something like this:


You should try:

log4j.appender.Exceptions.File=/var/log/exception.log (or whatever the path
may be)


James Wert Jr.


ILS Technology, Inc.
5300 Broken Sound Blvd. Suite 150
Boca Raton, FL 33487

Office: (561) 982-9898 x124
Cell: (561) 504-3452

                                               To:       log4cxx-user@logging.apache.org 
                      03/03/2005 04:11         cc:                                       
                      AM                       Subject:  Problem with RollingFileAppender
                      Please respond to                                                  
                      "Log4CXX User"                                                     

I've got small problem while using log4cxx and RollingFileAppend. My app is
logging using log4cxx and RollingFileAppender. After app starts it logs
into file eg. test.log - file name is taken from properties file via
PropertyConfigurator. While my app is running (and logging) i do something
else on my pc and i change current directory to other (not apps) directory
and when file test.log reach size larger tham maxfilesize defined in
properties logger rollover file and starts logging in file test.log but NOT
in app directory but in currect directory. This behaviour is a little
unexpected (IMHO). Is any chance that this will change in future?
 Startuj z INTERIA.PL!!! >>> http://link.interia.pl/f1837                   

View raw message