Enterprise Administration > Windchill ESI > Introduction to ERP Connector > Logging and Messaging
  
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:
log4j.logger.com.ptc.windchill.esi=DEBUG
To enable logging for all types of messages for all classes of ESI services add the following entry file:
log4j.logger.com.ptc.windchill.esi=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:
log4j.logger.com.ptc.windchill.esi.txn=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:
log4j.logger.com.ptc.windchill.esi.svc.StandardESIService=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:
log4j.logger.com.ptc.windchill.esi.txn=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.