Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mortbay.jetty
Class NCSARequestLog

    java.lang.Object
      org.mortbay.component.AbstractLifeCycle
          org.mortbay.jetty.NCSARequestLog

All Implemented Interfaces:
  LifeCycle, RequestLog

    public class NCSARequestLog

extends AbstractLifeCycle
implements RequestLog

This `RequestLog` implementation outputs logs in the pseudo-standard NCSA common log format. Configuration options allow a choice between the standard Common Log Format (as used in the 3 log format) and the Combined Log Format (single log format). This log format can be output by most web servers, and almost all web log analysing software can understand these formats.

Author:
  Greg Wilkins, Nigel Canonizado

Constructor Summary
`NCSARequestLog()`
`NCSARequestLog(String filename)`

Method Summary
`protected void` | `doStart()`
`protected void` | `doStop()`
`String` | `getDatedFilename()`
`String` | `getFilename()`
`String[]` | `getIgnorePaths()`
`boolean` | `getLogCookies()`
`String` | `getLogDateFormat()`
`boolean` | `getLogLatency()`
`boolean` | `getLogServer()`
`String` | `getLogTimeZone()`
`int` | `getRetainDays()`
`boolean` | `isAppend()`
`boolean` | `isExtended()`
`void` | `log(Request request, Response response)`
`protected void` | `logExtended(Request request, Response response, Writer writer)`
`void` | `setAppend(boolean append)`
`void` | `setExtended(boolean extended)`
`void` | `setFilename(String filename)`
`void` | `setIgnorePaths(String[] ignorePaths)`
`void` | `setLogCookies(boolean logCookies)`
`void` | `setLogDateFormat(String format)`
`void` | `setLogLatency(boolean logLatency)`
`void` | `setLogServer(boolean logServer)`
`void` | `setLogTimeZone(String tz)`
`void` | `setPreferProxiedForAddress(boolean preferProxiedForAddress)`
`void` | `setRetainDays(int retainDays)`

Methods inherited from class org.mortbay.component.AbstractLifeCycle
`isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.mortbay.component.LifeCycle
`isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop`

Constructor Detail

### NCSARequestLog

    public NCSARequestLog()

### NCSARequestLog

    public NCSARequestLog(String filename)

Method Detail

### setFilename

    public void setFilename(String filename)

### getFilename

    public String getFilename()

### getDatedFilename

    public String getDatedFilename()

### setLogDateFormat

    public void setLogDateFormat(String format)

### getLogDateFormat

    public String getLogDateFormat()

### setLogTimeZone

    public void setLogTimeZone(String tz)

### getLogTimeZone

    public String getLogTimeZone()

### setRetainDays

    public void setRetainDays(int retainDays)

### getRetainDays

    public int getRetainDays()

### setExtended

    public void setExtended(boolean extended)

### isExtended

    public boolean isExtended()

### setAppend

    public void setAppend(boolean append)

### isAppend

    public boolean isAppend()

### setIgnorePaths

    public void setIgnorePaths(String[] ignorePaths)

### getIgnorePaths

    public String[] getIgnorePaths()

### setLogCookies

    public void setLogCookies(boolean logCookies)

### getLogCookies

    public boolean getLogCookies()

### getLogServer

    public boolean getLogServer()

### setLogServer

    public void setLogServer(boolean logServer)

### setLogLatency

    public void setLogLatency(boolean logLatency)

### getLogLatency

    public boolean getLogLatency()

### setPreferProxiedForAddress

    public void setPreferProxiedForAddress(boolean preferProxiedForAddress)

### log

    public void log(Request request,
                    Response response)

  Specified by:
    `log` in interface `RequestLog`

### logExtended

    protected void logExtended(Request request,
                               Response response,
                               Writer writer)
                        throws IOException

  Throws:
    `IOException`

### doStart

    protected void doStart()
                    throws Exception

  Overrides:
    `doStart` in class `AbstractLifeCycle`
  Throws:
    `Exception`

### doStop

    protected void doStop()
                   throws Exception

  Overrides:
    `doStop` in class `AbstractLifeCycle`
  Throws:
    `Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 Mort Bay Consulting. All Rights Reserved.