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 Restore this Version View Page History

« Previous Version 2 Next »

The Fabric3 embedded Jetty HTTP server can be configured to log access using the log child element of web.server in systemConfig. Log configuration follows the NCSA format. Configuration options are shown in the following example:

<config xmlns="urn:fabric3.org">
    <web.server>
        <http port="8181"/>
        <log file="jetty.log" append="true" retain.days="5" prefer.proxied="false" filename.format="yyyy_mm_dd" 
                   locale="en" time.zone="GMT"  latency="true" cookies="true" log.server="true" logDispatch="true" 
                   date.format="dd/MMM/yyyy:HH:mm:ss Z" extended="true"/>
    </web.server>
</config>

The @file attribute configures the log file name, which is placed under the runtimes/<runtime name>/data/log directory.