This package adds Log4J functionality to Jetty Server logging. Currently, only HTTP Request
Logging has been implemented.
Once unzipped, this package should be placed in the {server-home}/contrib directory.
Running mvn (install is default) on this contrib module will install all necessary libraries
and config files. Running mvn clean will remove them.
Once installed, this package may be used by adding {server-home}/lib/logging-log4j/*.jar to the
Jetty server's classpath. The config file etc/jetty-logging-log4j.xml must also be passed to
the start.jar as a parameter before etc/jetty.xml.
NOTE: {server-home}/lib/log4j/*.jar must NOT be added to the server's classpath.
This could (and probably would) cause log4j configuration errors and log4j library
version collisions.
Log4J HTTP Requset Loggers can be added to the Jetty server or to contexts as shown in the
examples that follow. Appenders are configured in etc/log4j-jetty-config.xml.
[
ServerWide
true
false
GMT
]
Test