2015-05-21

Configure the Native Logger of Jetty

Jetty has a native logger component. User is able to configure a module using log4j logger. Here is the configuration of the native logger.

1. Add one line in start.ini to enable logging module

--module=logging

2. Modify logging module etc/jetty-logging.xml with new properites

<Arg><Property name="jetty.logs" default="E:/work3/bw5/M3O_Cloud/Automation/log"/>/server.log</Arg>

3. Restart tetty server with command

java -jar start.jar

Labels: