tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albretch Mueller" <lbrt...@gmail.com>
Subject Re: Still trying to log using org.apache.juli.FileHandler ...
Date Mon, 03 Dec 2007 22:35:46 GMT
> >  /META-INF directory you say? Isn't /META-INF a special descriptor
> > folder in WAR files?

> Yes, and also in expanded .war files.  That's where Tomcat will look for
> the context.xml file; read the doc:
> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
~
 I see! and thank you! The thing is that I has been trying to clobber
some application that I had developed during tc 4.1.36 times and after
all these changes I don't seem to see things through
~
 What I am trying to achieve is take everything that could be editted
or folders that should be writable (log files etc) to a directory out
of $CATALINA_BASE's branch
~
 Here are in the incumbered sections of server.xml and context.xml
~
~ ~ ~ $CATALINA_HOME/conf/server.xml!<Host/> ~ ~ ~
~
 <Host name="localhost"
  appBase="C:\cmllpz\prjx\java\GWB\webappsDir_tc-6.0.14\webapps02"
  unpackWARs="true"
  autoDeploy="true"
  xmlValidation="false"
  xmlNamespaceAware="false">

   <Valve className="org.apache.catalina.valves.AccessLogValve"
     directory="C:\cmllpz\prjx\java\GWB\logs"
     prefix="tc-6.0.14-localhost_access_log."
     suffix=".log"
     pattern="common"
     resolveHosts="false"/>
 </Host>
~
~ ~ ~ C:\cmllpz\prjx\java\GWB\webappsDir_tc-6.0.14\webapps02\fileupload\META-INF\context.xml
~ ~ ~
~
<Context debug="99" reloadable="true" crossContext="true">

 <Logger className="org.apache.catalina.logger.FileLogger"
  directory="C:\cmllpz\prjx\java\GWB\logs"
  prefix="tc-6.0.14-FileUpload_log."
  suffix=".txt"
  timestamp="true"/>
</Context>
~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~
 However I still don't see that tc is creating the log file specific
to this webapp, namely, "tc-6.0.14-FileUpload_log"
~
 org.apache.catalina.valves.AccessLogValve in <Host /> is worning just
fine though
~
 Thank you again
 lbrtchx

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message