Hi, See Jacob Kjome's contributions to the log4j sandbox at http://cvs.apache.org/viewcvs.cgi/logging-log4j-sandbox/src/java/org/apa che/log4j/ (servlet and selector packages). People have been using them in production for a long time now, all reporting success. We will probably put it in log4j 1.3 proper (i.e. promote it from the sandbox, so it will be included in the default log4j distribution).
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Thursday, July 29, 2004 1:14 PM >To: [EMAIL PROTECTED] >Subject: application path/docBase property > > > I'm trying to find the property that corresponds to either the >application path (i.e. the path attribute of the Context element), or >the installed path (i.e. the docBase attribute). I haven't had any luck >finding it. Is there such a property? > > Specifically, what I am trying to do is have a application that can >be installed to an arbitrary path use a common log4j properties file >and have the logs go to an appropriate log file. Right now I'm working >around the problem by generating the log4j properties file at build time, >but I'd prefer not to have to rebuild just to install to a new location. > >e.g., I'd like to be able to do something like this: >log4j.appender.MYLOG.File=${catalina.home}/logs/${application.path}.log >or even: >log4j.appender.MYLOG.File=${application.path}/WEB-INF/logs/application. log > >Any suggestions? > >thanks, >eric > > >--------------------------------------------------------------------- >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]
