Wednesday, 4 January 2012

Configure log4j for Jetty 8.0.4

Configure log4j for Jetty 8.0.4
This task configure log4j for Jetty 8.0.4
Configure log4j for Jetty 8.0.4
  1. Copy log4j-1.2.8.jar to JETTY_HOME/lib/ext folder
  2. Append JETTY_HOME/resources/log4j.properties with following code
  3. 1log4j.appender.R=org.apache.log4j.RollingFileAppender
    2log4j.appender.R.File=logs/website.log
    3log4j.appender.R.layout=org.apache.log4j.PatternLayout
    4log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
    5log4j.appender.R.MaxFileSize=200KB
    6log4j.appender.R.MaxBackupIndex=10240
    7log4j.rootLogger=WARN, R
    8log4j.logger.website=DEBUG
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    log4j.appender.R.File=logs/website.log
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
    log4j.appender.R.MaxFileSize=200KB
    log4j.appender.R.MaxBackupIndex=10240
    log4j.rootLogger=WARN, R
    log4j.logger.website=DEBUG
    

  Protected by Copyscape Online Copyright Protection

Install and run Jetty 8.0.4

Install and run Jetty 8.0.4
This task install and run Jetty 8.0.4
Install and run Jetty 8.0.4
  1. Download Jetty 8.0.4
  2. Unzip to SRC folder
  3. Copy following folders and files to TAG folder
  4. + SRC/etc
    + SRC/lib
    + SRC/logs
    + SRC/resources
    + SRC/webapps
    + SRC/start.jar
    + SRC/start.ini
          
  5. Run following commands
  6. cd TAG
    java -jar start.jar
          

  Protected by Copyscape Online Copyright Protection

Task tagged by [log4j]

  1. Configure log4j for Jetty 8.0.4

Task tagged by [Jetty]

  1. Install and run Jetty 8.0.4
  2. Configure log4j for Jetty 8.0.4