In Tools and Frameworks 11.2, Assembler logs let you correlate application Assembler requests with MDEX query entries in the Dgraph request log. This helps you to identify and troubleshoot problems.

Prior to 11.2, there was limited information logged in the Dgraph request log and in the JSON response page. In 11.2, additional logging data has been added to the JSON response page and Dgraph request log.

In a Spring implementation prior to 11.2, logging information was formerly configured in the ContentItemAugmentAdapter and the LogServerAdapter of the assembler-context.xml file as follows:

<bean class="com.endeca.infront.assembler.event.request.ContentItemAugmentAdapter">
    <constructor-arg ref="springUtility"/>
</bean>
<!-- Remove the following lines to disable logging to an Oracle Endeca Log Server -->
<bean class="com.endeca.infront.navigation.event.LogServerAdapter">
    <constructor-arg ref="springUtility"/>
    <constructor-arg value="${logserver.host}"/>
    <constructor-arg value="${logserver.port}"/>
    <constructor-arg value="${logserver.sslEnabled}"/>
</bean> 

In 11.2, the RequestEvent generation has been moved to its own class. The ContentItemAugmentAdapter and LogServerAdapter services require RequestEventInitializer to log request-related information. The RequestEventInitializer should be configured before these services. The MdexQueryInfoInitializer is also configured so that query information such as the request id, and the session id is added to the Dgraph request log.

<bean class="com.endeca.infront.assembler.event.request.RequestEventInitializer">
    <property name="sessionIdProvider" ref="springUtility"/>
    <property name="requestIdProvider" ref="springUtility"/>
</bean>
<bean class="com.endeca.infront.navigation.event.MdexQueryInfoInitializer">
</bean>
<bean class="com.endeca.infront.assembler.event.request.ContentItemAugmentAdapter">
</bean>
<!-- Remove the following lines to disable logging to an Oracle Endeca Log Server -->
<bean class="com.endeca.infront.navigation.event.LogServerAdapter">
    <property name="logServerHost" value="${logserver.host}"/>
    <property name="logServerPort" value="${logserver.port}"/>
    <property name="isSslEnabled" value="${logserver.sslEnabled}"/>
</bean>

Copyright © Legal Notices