Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
log4j.category.SERVICE_LOGGER.StockQuoteProxy=DEBUG, SQ_PROXY_APPENDER
log4j.additivity.SERVICE_LOGGER.StockQuoteProxy=false
log4j.appender.SQ_PROXY_APPENDER=org.apache.log4j.DailyRollingFileAppender
log4j.appender.SQ_PROXY_APPENDER.File=logs/stock-quote-proxy-service.log
log4j.appender.SQ_PROXY_APPENDER.datePattern='.'yyyy-MM-dd-HH-mm
log4j.appender.SQ_PROXY_APPENDER.layout=org.apache.log4j.PatternLayout
log4j.appender.SQ_PROXY_APPENDER.layout.ConversionPattern=%d{ISO8601} \[%X{ip}-%X{host}\] \[%t\] %5p %c{1} %m%n

2.2. Save the file.

3. Try it out. By default, the configuration does not do any logging at run time, so configure the Proxy Service in-sequence to contain a log mediator to log the message at "Full" log level.

Execute the sample client after starting the ESB with sample 150:

...