Hi, Yes, you can.
Take a look at the admin context provided with tomcat (as an example): <Context path="/admin" docBase="${catalina.home}/server/webapps/admin" debug="0" privileged="true"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_admin_log." suffix=".txt" timestamp="true"/> </Context> Bob -----Mensagem original----- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 30 de dezembro de 2004 02:33 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: RE: I need to configure logs on my virtual hosting Hi Bob, I am using tomcat 5.0. I found that logger is used below tomcat 5.5.0. Can I use logger in context.xml in mywebapp/META-INF/context.xml? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -----Original Message----- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 8:30 PM To: tomcat-user@jakarta.apache.org Subject: RE: I need to configure logs on my virtual hosting Hi, Which tomcat version? For tomcat 4.X put a LOGGER component inside the context and specify the directory that you want. Take a look at (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html) This procedure works with TC 5.0.X, but it's deprecated. For TC 5.5, look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html. Bob -----Mensagem original----- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 28 de dezembro de 2004 04:27 Para: Tomcat Users List Assunto: I need to configure logs on my virtual hosting Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory. --------------------------------------------------------------------- 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]