From 3b04817fe92dd99595ae5b1215dd96c6880d49f9 Mon Sep 17 00:00:00 2001 From: WalkerWatch Date: Tue, 27 Dec 2016 13:25:47 -0500 Subject: [PATCH] Update for Log Latency Signed-off-by: WalkerWatch --- .../logging/configuring-jetty-request-logs.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jetty-documentation/src/main/asciidoc/administration/logging/configuring-jetty-request-logs.adoc b/jetty-documentation/src/main/asciidoc/administration/logging/configuring-jetty-request-logs.adoc index 8fa90e1aeb3..b74ec677941 100644 --- a/jetty-documentation/src/main/asciidoc/administration/logging/configuring-jetty-request-logs.adoc +++ b/jetty-documentation/src/main/asciidoc/administration/logging/configuring-jetty-request-logs.adoc @@ -76,7 +76,10 @@ server.setRequestLog(requestLog); This configures a request log in `{$jetty.home}/logs` with filenames including the date. Existing log files are appended to and the extended NCSA format is used in the GMT time zone. -You can customize the number of days you wish to keep request logs. +The above configuration enables Log Latency, which is the amount of time it took the server to handle the request. +This value is measured in milliseconds and is appended to the the log file for each request. + +You can also customize the number of days you wish to keep request logs. By default, log files are kept for 90 days before being deleted. The value for `retainDays` (xml) or `setRetainDays` (Java) should be configured as _1 + n_ days. For example, if you wanted to keep the logs for the current day and the day prior you would set the `retainDays` (or `setRetainDays`) value to 2.