Previous Topic: Site Properties FileNext Topic: Using CA Service Virtualization


logging.properties

log4j.rootCategory

Default: INFO,A1

To provide centralized logging for cloud runs, add the registry appender and uncomment the registry appender properties in the logging.properties file. For example:

log4j.rootCategory=INFO,A1,registry

The following lines adjust the log levels of third-party libraries that are used by DevTest. Specifying log levels means that they do not clutter the logs with messages unrelated to DevTest.

log4j.logger.com.teamdev

Default: WARN

log4j.logger.EventLogger

Default: WARN

log4j.logger.org.apache

Default: ERROR

log4j.logger.com.smardec

Default: ERROR

log4j.logger.org.apache.http

Default: ERROR

log4j.logger.org.apache.http.header

Default: ERROR

log4j.logger.org.apache.http.wire

Default: ERROR

log4j.logger.com.mchange.v2

Default: ERROR

log4j.logger.org.hibernate

Default: WARN

log4j.logger.org.jfree

Default: ERROR

log4j.logger.com.jniwrapper

Default: ERROR

log4j.logger.sun.rmi

Default: INFO

log4j.logger.com.itko.util.ThreadDumper

Default: INFO

log4j.logger.profiler

Set this property to INFO if you want your profile events to be logged:

Default: OFF

log4j.appender.A1

Default: com.itko.util.log4j.TimedRollingFileAppender

log4j.appender.A1.File

Default: ${lisa.tmpdir}/${LISA_LOG}

log4j.appender.A1.MaxFileSize

Default: 10MB

log4j.appender.A1.MaxBackupIndex

Default: 5

log4j.appender.A1.layout

Default: org.apache.log4j.EnhancedPatternLayout

log4j.appender.A1.layout.ConversionPattern

Default: %d{ISO8601}{UTC}Z (%d{HH:mm}) [%t] %-5p %-30c - %m%n

log4j.logger.VSE

Keep a separate log for VSE transaction match/no-match events, Having a separate log makes debugging much easier.

Change INFO to WARN for production systems. The logging can slow down systems with high transaction rates. Do not simply comment out the following line. Explicitly set the log level to OFF or WARN instead of INFO.

Default: INFO, VSEAPP

log4j.additivity.VSE

To add VSE logging to other log destinations, comment out this line.

Default: false

log4j.appender.VSEAPP

Default: com.itko.util.log4j.TimedRollingFileAppender

log4j.appender.VSEAPP.File

Default: ${lisa.tmpdir}/vse_matches.log

log4j.appender.VSEAPP.MaxFileSize

Default: 10MB

log4j.appender.VSEAPP.MaxBackupIndex

Default: 20

log4j.appender.VSEAPP.layout

Default: org.apache.log4j.EnhancedPatternLayout

log4j.appender.VSEAPP.layout.ConversionPattern

Default: %d{ISO8601}{UTC}Z (%d{HH:mm})[%t] %-5p - %m%n

Keep a separate log for advisory events. This logger warns of potential configuration issues such as potential memory leaks. The log is deliberately kept separate from the application log to minimize noise.

log4j.logger.ADVICE

Default: INFO, ADVICE_APP

log4j.additivity.ADVICE

Default: false

log4j.appender.ADVICE_APP

Default: org.apache.log4j.RollingFileAppender

log4j.appender.ADVICE_APP.File

Default: ${lisa.tmpdir}/advice.log

log4j.appender.ADVICE_APP.MaxFileSize

Default: 10MB

log4j.appender.ADVICE_APP.MaxBackupIndex

Default: 20

log4j.appender.ADVICE_APP.layout

Default: org.apache.log4j.EnhancedPatternLayout

log4j.appender.ADVICE_APP.layout.ConversionPattern

Default: %d{ISO8601}{UTC}Z (%d{HH:mm}) %-5p - %m%n

If enabled, periodic thread dumps are sent here. DevTest writes logs at the INFO level. Therefore, to get the thread dumps, change WARN in the next line to INFO, even with DevTest servers or DevTest Workstation running. This action results in a thread dump in the named file in 30 seconds. For more information, search for "threadDump" in lisa.properties. This action also simplifies getting thread dumps to debug performance issues. Change WARN in the next line to INFO, wait for 1 minute or 2 minutes, then revert the setting to WARN.

You can also generate a point-in-time thread dump with the LISA_HOME/bin/ServiceManager application. For example, use standard Java tools such as jstack, or issue the following command:

ServiceManager -threadDump tcp://hostname:2014/Simulator
log4j.logger.threadDumpLogger

Default: WARN, THREAD_DUMPS

log4j.additivity.threadDumpLogger

Default: false

log4j.appender.THREAD_DUMPS

Default: org.apache.log4j.RollingFileAppender

log4j.appender.THREAD_DUMPS.File

Default: ${lisa.tmpdir}/threadDumps/TD_${LISA_LOG}

log4j.appender.THREAD_DUMPS.MaxFileSize

Default: 10MB

log4j.appender.THREAD_DUMPS.MaxBackupIndex

Default: 20

log4j.appender.THREAD_DUMPS.layout

Default: org.apache.log4j.EnhancedPatternLayout

log4j.appender.THREAD_DUMPS.layout.ConversionPattern

Default: %d{ISO8601}{UTC}Z (%d{HH:mm}) [%t] %-5p - %m%n

log4j.appender.registry

Mirrors DevTest logging to the (remote) registry.

Default: com.itko.lisa.net.LoggingToRegistryAppender

log4j.appender.registry.layout

Default: org.apache.log4j.EnhancedPatternLayout

log4j.appender.registry.layout.ConversionPattern

Default: %d{ISO8601}{UTC}Z [%t] %-5p - %m%n

The following properties display the requests and responses for HTTP-based traffic in the vse.log. This information is useful for debugging a virtual service that returns a "no match found" response. Such a result can indicate that the VS did not receive the expected request.

These log messages reveal the same requests and response that TCPMON shows. The requests and responses display in the vse.log, without having to inject TCPMON between the virtual service and its client application. These options only log HTTP requests and responses. These options can help to debug virtual services, especially when a virtual service responds with an unexpected message and you want to match a raw request with the raw response.    

log4j.logger.com.itko.lisa.vse.http.Transaction

Prints the requests that travel through this class in the vse.log. These log messages begin with "Raw playback response."

Values: TRACE, null

DEFAULT: null

log4j.logger.com.itko.lisa.vse.stateful.protocol.http.Coordinator

Prints the requests that travel through this class in the vse.log. These log messages begin with "Raw request start."

Values: TRACE, null

DEFAULT: null

log4j.logger.com.itko.lisa.vse.stateful.protocol.http.HttpListenStep

Prints the requests that travel through this class in the vse.log. These log messages begin with "Raw request start."

Values: TRACE, null

DEFAULT: null