Package org.apache.catalina.valves
Class AbstractAccessLogValve.ElapsedTimeElement
java.lang.Object
org.apache.catalina.valves.AbstractAccessLogValve.ElapsedTimeElement
- All Implemented Interfaces:
AbstractAccessLogValve.AccessLogElement
- Enclosing class:
- AbstractAccessLogValve
protected static class AbstractAccessLogValve.ElapsedTimeElement
extends Object
implements AbstractAccessLogValve.AccessLogElement
write time taken to process the request - %D, %T
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(CharArrayWriter buf, Date date, Request request, Response response, long time)
-
Constructor Details
-
ElapsedTimeElement
public ElapsedTimeElement(boolean millis) - Parameters:
millis
-true
, write time in millis - %D, iffalse
, write time in seconds - %T
-
-
Method Details
-
addElement
public void addElement(CharArrayWriter buf, Date date, Request request, Response response, long time) - Specified by:
addElement
in interfaceAbstractAccessLogValve.AccessLogElement
-