Package org.eclipse.jetty.server
Interface RequestLog
-
- All Known Implementing Classes:
AbstractNCSARequestLog
,AsyncNCSARequestLog
,CustomRequestLog
,NCSARequestLog
,RequestLog.Collection
,Slf4jRequestLog
public interface RequestLog
ARequestLog
can be attached to aRequestLogHandler
to enable logging of requests/responses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RequestLog.Collection
static interface
RequestLog.Writer
Writes the generated log string to a log sink
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
log(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.
-
-