Request and response logging
InfoSphere® MDM provides a default logging tool to log requests and responses. The default tool stores log files in the InfoSphere MDM log file folder.
You can override the default request response logger by creating your own bundle. Your new logger
must implement the
com.dwl.base.logging.ReqRespLogger interface, and you must
configure the blueprint service for your bundle as
follows:<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<service id="RequestResponseLogger" interface="com.ibm.mdm.common.servicefactory.api.CommonServiceFactory">
<service-properties>
<entry key="common.service" value="com.dwl.base.logging.ReqRespLogger"/>
</service-properties>
<bean class="com.ibm.mdm.common.servicefactory.CommonServiceFactoryImpl">
<argument type="java.lang.Class" value="com.dwl.base.logging.ReqRespLogger"/>
<argument type="java.lang.Class" value="Your LOGGER IMPLEMENTATION CLASS" />
<argument ref="blueprintBundle"/>
</bean>
</service>
</blueprint>Tip: To preserve the logging capabilities, ensure your logger continues to use
com.dwl.base.logging.ReqRespLogger as the logger.To enable logging using the
existing request response logger:
- Log on to the IBM® WebSphere® Application Server admin console.
- Navigate to the Logs and Trace console.
- Set the following
configuration:
com.dwl.base.logging.ReqRespLogger=fine