tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Lynch <...@sgi.com>
Subject Re: Logging via log4j and war file question
Date Mon, 23 Jun 2003 17:08:30 GMT
Thanks for all the replies.  Finally something about this project that I
can really appreciate.  The soloution is to do NOTHING!  I love it.  8)

Thanks,
Jim.

Jim Lynch wrote:
> 
> I recently switch from doing "install", "remove" deployments via a build
> directory to "deploy", "undeploy" via a war file.  Unfortuantely my
> logging has stopped working.  I've traced it to the following statement:
> 
> PropertyConfigurator.configure(getServletContext().getRealPath("/")+"/WEB-INF/classes/log4j.properties");
> 
> It appears the getRealPath method doesn't work with war files, so I'm a
> bit stuck.  How can I configure my logging from a file within the war
> file, or can I?
> 
> Thanks,
> Jim.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

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


Mime
View raw message