Howdy,
That's only for the specific webapp, not the whole server, and he said
he can only modify things under WEB-INF, not one level higher in the
webapps directory ;(

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: James Williamson [mailto:[EMAIL PROTECTED]
>Sent: Thursday, April 03, 2003 5:08 AM
>To: Tomcat Users List
>Subject: Re: override catalina logging in web.xml
>
>>
>> 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.
>
>There is actually a way round this, if you have the host set to
liveDeploy
>then
>dropping an *.xml file (see contents below) inside the 'appBase'
directory
>will get round this limitation. Tomcat uses the contents  to configure
and
>deploy a webapp
>(including the logging).
>
>I haven't tested it but you can set the privileged attribute to true,
it
>would certainly
>have security implications if you're on a shared machine.
>
><Context path="/test" docBase="/tmp/test/WEB-INF" privileged="true">
><Logger className="org.apache.catalina.logger.FileLogger"
>              prefix="testlog." suffix=".txt"
>              timestamp="true" debug="true"/>
></Context>
>
>Regards,
>
>James Williamson
>www.nameonthe.net
>Tel: +44 208 7415453
>Fax: + 44 208 7411615
>
>>
>> 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]
>>
>>
>
>
>
>---------------------------------------------------------------------
>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]

Reply via email to