Jetty has moved!
Jetty is a project at the Eclipse Foundation.
Homepage:http://www.eclipse.org/jetty
Downloads: http://download.eclipse.org/jetty/
Documentation:http://www.eclipse.org/jetty/documentation/current/
About:http://www.eclipse.org/jetty/about.php
Jetty Powered:http://www.eclipse.org/jetty/powered/
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »


Request Logs

Request logs are a record of the requests that the server has processed. They create an entry for each request received and are commonly in the standard NCSA format so they can analysed by tools like webalizer. A standard request log entry includes the client IP, date, method, URL, result, size, referrer and user agent. eg:

123.4.5.6 - - [27/Aug/2004:10:16:17 +0000]
 "GET /jetty/tut/XmlConfiguration.html HTTP/1.1"
 200 76793 "http://localhost:8080/jetty/tut/logging.html"
 "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040614 Firefox/0.8"

Jetty provides an implementation called NCSARequestLog which supports the NCSA format in files that can be rolled over on a daily basis.

To configure a request log for the whole server in jetty.xml:

This configures a request log in $JETTY_HOME/logs with filenames including the date. Old log files are kept for 90 days before being deleted. Existing log files are appended to and the extended NCSA format is used in the GMT timezone.
Logs entries are not generated for requests in the path /images/* or matching *.css.

As for now, the logging implementation is per server instance, meaning one request log per server.
Context logs and application logs are yet to be included as of now.

http://jetty.mortbay.org/jetty6/jetty/org/mortbay/jetty/NCSARequestLog.html

FAQ
Back to FAQ


  • No labels
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery