Howdy, By definition, everything in web.xml is specified by the Servlet Specification, so it can't contain tomcat-specific items. Tomcat could do something nifty such as allowing you to manipulate loggers via <env-entry> elements in web.xml, but currently tomcat does not expose this.
If you want to modify tomcat's logging, you or someone who has access has to modify server.xml AFAIK. Even if you tried to do it dynamically via the API, whatever classes you write will have to be deployed higher in the classloader hierarchy than your webapp's classloader, so it wouldn't help you in this case. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: alden taylor [mailto:[EMAIL PROTECTED] >Sent: Wednesday, April 02, 2003 3:33 PM >To: [EMAIL PROTECTED] >Subject: override catalina logging in web.xml > >Hello, > >I am working in an environment where I have no control >over the server.xml file, nor can I view any of of the >default log files, (catalina.out, etc.) This is >because I only have access to files which are nfs >mounted to the machine that I have access to. What I >can change is anything in the WEB-INF directory. > >Does anyone know how I can override the default >catalina logging behavior by setting some >configuration element either in web.xml or some other >file which will be viewed by tomcat in the WEB-INF >directory? > >I am using log4j/commons-logging, and have success >logging everything from my code, but I cannot see what >tomcat is doing outside the scope of my code. > >any help is greatly appreciated. > >thanks, >alden > >__________________________________________________ >Do you Yahoo!? >Yahoo! Tax Center - File online, calculators, forms, and more >http://tax.yahoo.com > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
