Package org.eclipse.jetty.server
Interface RequestLog
-
- All Known Implementing Classes:
AbstractNCSARequestLog,AsyncNCSARequestLog,CustomRequestLog,NCSARequestLog,RequestLog.Collection,Slf4jRequestLog
public interface RequestLogARequestLogcan be attached to aRequestLogHandlerto enable logging of requests/responses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRequestLog.Collectionstatic interfaceRequestLog.WriterWrites the generated log string to a log sink
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidlog(Request request, Response response)
-
-
-
Method Detail
-
log
void log(Request request, Response response)
- Parameters:
request- The request to log.response- The response to log. Note that for some requests the response instance may not have been fully populated (Eg 400 bad request responses are sent without a servlet response object). Thus for basic log information it is best to consultResponse.getCommittedMetaData()andResponse.getHttpChannel()directly.
-
-