Logging and Messaging
Message logs can be viewed from the Windchill ESI services components as well as from Windchill EAI components.
Windchill ESI services log various kinds of messages by using Windchill's log4j based logging capabilities.
To enable Windchill ESI services to write messages to the Windchill MethodServer logs, use the following procedure:
1. Navigate to and modify the following file:
<wt_home>/codebase/WEB-INF/log4jMethodServer.properties
2. To enable logging of debug messages for all classes of ESI services add the following entry:
logger.esi.name=com.ptc.windchill.esi
logger.esi.level=DEBUG
To enable logging for all types of messages for all classes of ESI services add the following entry file:
logger.esi.name=com.ptc.windchill.esi
logger.esi.level=ALL
Logs can also be enabled for specific packages or classes. For example, to enable logging for debug messages for all classes in the package com.ptc.windchill.esi.txn you would enter the following:
logger.txn.name=com.ptc.windchill.esi.txn
logger.txn.level=DEBUG
To enable logging of all types of messages (for example, Debug, Info, Warn, Trace) for the class com.ptc.windchill.esi.svc.StandardESIService you would enter the following:
logger.StandardESIService.name=com.ptc.windchill.esi.svc.StandardESIService
logger.StandardESIService.level=ALL
* 
To turn off logging completely set the relevant property to OFF. For example, to do this for all classes in the package com.ptc.windchill.esi.txn, you would enter the following:
logger.txn.name=com.ptc.windchill.esi.txn
logger.txn.level=OFF
To enable or disable logging in a running method server instance use the following procedure:
From a Windchill shell run the following commands:
To enable: windchill wt.util.jmx.SetLogLevel -ms com.ptc.windchill.esi DEBUG
To disable: windchill wt.util.jmx.SetLogLevel -ms com.ptc.windchill.esi
* 
For more information on logging see Managing Windchill Logging.
這是否有幫助?