Server Log


Added by David Yu, last edited by David Yu on Jul 16, 2007  (view change)

Labels

 
(None)
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

Configuring Jetty Logging using log4j.properties

        Step 1:    Put your log4j.properties on $jetty.home/resources

        Step 2:    The logging jars should be made available on jetty's classpath.  Refer below:
 

Via log4j:

        On your $jetty.home/lib/ext, add the ff jars:

  • slf4j-api-1.3.1.jar
  • log4j-1.2.14.jar
  • slf4j-log4j12-1.3.1.jar

via commons-logging:

        On your $jetty.home/lib/ext, add the ff jars:

  • slf4j-api-1.3.1.jar
  • commons-logging-1.1.jar
  • slf4j-jcl-1.3.1.jar
  • log4j-1.2.14.jar
  1. Aug 06, 2007

    Richard Wallace says:

    I managed to get logging working using logback by getting rid of these files ./...

    I managed to get logging working using logback by getting rid of these files

    ./lib/jsp-2.0/slf4j-simple-1.3.1.jar
    ./lib/jsp-2.0/slf4j-api-1.3.1.jar
    ./lib/jsp-2.0/jcl104-over-slf4j-1.3.1.jar

     And adding these

     ./lib/slf4j-api-1.4.2.jar
    ./lib/jcl104-over-slf4j-1.4.2.jar
    ./lib/logback-core-0.9.7.jar
    ./lib/logback-classic-0.9.7.jar

    Then put your logback.xml file into the resources directory and your good to go. 

    Now I'm off to figure out why my access logging with logback isn't working.