<sequence xmlns="http://ws.apache.org/ns/synapse" name="custom_log_sequence">
    <log level="custom">
        <property name="TRACE" value="Global Mediation Extension"/>
        <property name="appName" expression="get-property('APPLICATION_NAME')"/>
        <property name="userName" expression="get-property('END_USER_NAME')"/>
        <property name="transactionId" expression="get-property('activityID')" scope="transport"/>
        <property name="userAgent" expression="get-property('TRANSPORT_HEADERS')" scope="transport"/>
        <property name="requestURI" expression="get-property('REST_FULL_REQUEST_PATH')" scope="transport"/>
        <property name="requestTime" expression="get-property('SYSTEM_DATE')"/>
        <property name="remoteIP" expression="get-property('REMOTE_ADDR')"/>
        <property name="statusCode" expression="get-property('HTTP_SC')"/>

    </log>
</sequence>

