You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Mark Himsley <lo...@mdsh.com> on 2004/04/16 18:42:59 UTC
getRealPath() and PropertyConfigurator.configure
Hi,
I've googled and looked in the mail archives but I've failed to find
If PropertyConfigurator.configure() accepts a String, a URL or a Properties
object
and we are using log4j in a servlet
and it is unwise to use getServletContext().getRealPath("/") in a servlet
because it might be in an unexpanded WAR and we are making our application
compatible with that
then in what way should we configure our logger?
All the examples I've seen (including the one in the documentation) use a
String containing a filename built from using getRealPath.
Thanks in advance.
--
Mark Himsley
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org