Hello Carey,

See the Log4jInit servlet and Log4jApplicationWatch servlet context
listener in Barracuda.  These provide exactly what you need.

http://barracuda.enhydra.org/software/cvs/cvsweb.cgi/Projects/EnhydraOrg/toolsTech/Barracuda/src/org/enhydra/barracuda/webapp/log4j/
http://barracuda.enhydra.org/software/cvs/cvsweb.cgi/Projects/EnhydraOrg/toolsTech/Barracuda/src/org/enhydra/barracuda/log4j/

Actually, I have updated some stuff and am waiting to apply it
to Barracuda once our new server is up and DNS has propogated.  I can
send that latest and greatest to you when I get home.  In the changes,
The Log4jInit servlet is no longer used in favor of doing everything
in the servlet context listener and the Log4jCRS is super simplified and
renamed to ContextClassLoaderSelector.

And yes, it will provide for properties or dom configuration.

Jake

Tuesday, January 14, 2003, 12:18:03 PM, you wrote:

CB> Hi,

CB> I am attempting to deploy a web application in WebLogic 
CB> via a war file. Since I have no way of determing the 
CB> actual path that Weblogic will use for deploying my war 
CB> file, I need a way to access my xml file that holds my 
CB> log4j properties. I can use 
CB> servletContext.getResourceAsStream() to get an InputStream 
CB> object of the xml file. With that what is the best way to 
CB> load my properties. I see there is a 
CB> DomConfigurator.doConfigure(InputStream, 
CB> LoggerRepository). Will this work and if so, what do I 
CB> pass in for the LoggerRepository object (not familiar with 
CB> that). In addition, is there a way to get the capability 
CB> of the watchdog with this?

CB> Thanks for your help!
CB> Carey


CB> --
CB> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
CB> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



-- 
Best regards,
 Jacob                            mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to