Hi, I am trying to have a Log per api, I have configured log4j.properties as said in the documentation. But it is not fully working.
See the API below: <api xmlns="http://ws.apache.org/ns/synapse" name="TestAPI" context="/testapi"> <resource methods="GET" uri-template="/test"> <inSequence> <log level="full"> <property name="INSIDE API" value="INSIDE API"/> </log> <clone continueParent="true"> <target> <sequence> <log level="full"> <property name="INSIDE CLONE" value="INSIDE CLONE"/> <property name="SYNAPSE_REST_API" expression="$ctx:SYNAPSE_REST_API"/> </log> </sequence> </target> </clone> </inSequence> </resource></api> The log statement inside the inSquence is displayed in the API log file that was defined in log4j. But, the log inside the clone mediator is not, it is displayed in the wso2carbon.log. I checked that for ProxyServices even it being inside a clone mediator the logs are written to the proxy service log. Could you assist me on this? Is there any way to have the logs defined in a clone mediator in a api be written to the same log file? Thanks, -- Francisco Ribeiro *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
