  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Tomcat logs | Tomcat logs 2003-10-10 - By Tim Funk
Back See the javadocs for AccessLogValve (prefereably your local version since the site is a version out of date. Any setXXX(stuff) method can be set declared in the AccessLogValve decalration. For example, there is a property called rotatable as indicated by setRotatable(boolean). This can be set in the vavle by this:
<Valve className="org.apache.catalina.valves.AccessLogValve " directory="logs" prefix="localhost_access_log." suffix=".txt" rotatable='false' pattern="common" resolveHosts="false"/>
You can declare as many Valves as you want. I recommend copy/paste to get as many declarations as possible on a test tomcat instance so you can play with the different property permutations.
-Tim
Julie christiana wrote:
> Sorry to bother you all with so many questions, > > but could you please send me a sample server.xml which achieves the same. > Any documentation for the same would also be useful. > > Thanks, > Julie Chritiana > > Tim Funk <funkman@(protected)> wrote: > The AccessLogValve does not have the ability to perform the deletion of old > files. > > You can have multiple AccessLogValves at the same time. For example: one > writing to a single non-rotating log file and the other rotating nightly. > > -Tim >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |