mohammad amin rahimi
mohammad amin rahimi

Reputation: 141

logging payload of request in wso2am

with the following mediation i log headers of a request

<sequence xmlns="http://ws.apache.org/ns/synapse" name="WSO2AM--Ext--In">
    <log level="custom">
        <property name="system_time" expression="get-property('SYSTEM_TIME')"/>
        <property name="application" scope="transport" expression="get-property('api.ut.application.name')"/>
        <property name="api name" scope="transport" expression="get-property('api.ut.api')"/>
        <property name="method" scope="transport" expression="get-property('api.ut.HTTP_METHOD')"/>
        <property name="resource" scope="transport" expression="get-property('api.ut.resource')"/>
    </log>
</sequence>

but i also want to log payload of request. how can i do it?

Upvotes: 0

Views: 542

Answers (1)

Lakshitha
Lakshitha

Reputation: 1031

You can use log level as full and it will log the payload. . However, this will parse the message content and will have a performance hit.

For more info, please visit documentation

Upvotes: 1

Related Questions