You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by Piyum Fernando <pi...@wso2.com> on 2011/07/26 12:13:26 UTC
Synapse Quick Log entry
I made some changes to LogMediator, LogMediatorFactory and
LogMediatorSerializer by adding the quick log feature which allows to add
quickly log a literal or expression. Patch file is attached.
Examples;
<log value = 'value' />
<log expression = "XPath expression" />
<log [(value="literal" | expression="xpath")] [level="string"]
[separator="string"]>
<property name="string" (value="literal" | expression="xpath")/>*
</log>
Re: Synapse Quick Log entry
Posted by Kasun Indrasiri <ka...@gmail.com>.
+1 for the improvement. Using a property tag inside the log mediator is a
hassle.
On Tue, Jul 26, 2011 at 1:00 PM, Supun Kamburugamuva <su...@gmail.com>wrote:
> Hi Piyum,
>
> The syntax should be
>
> <log message="string | {expression}"/>
>
> Please have a look at the mediators like send for how this is done.
>
> Thanks,
> Supun..
>
> On Tue, Jul 26, 2011 at 3:43 PM, Piyum Fernando <pi...@wso2.com> wrote:
>
>> I made some changes to LogMediator, LogMediatorFactory and
>> LogMediatorSerializer by adding the quick log feature which allows to add
>> quickly log a literal or expression. Patch file is attached.
>>
>> Examples;
>>
>> <log value = 'value' />
>>
>> <log expression = "XPath expression" />
>>
>> <log [(value="literal" | expression="xpath")] [level="string"] [separator="string"]>
>>
>>
>> <property name="string" (value="literal" | expression="xpath")/>*
>> </log>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
>> For additional commands, e-mail: dev-help@synapse.apache.org
>>
>
>
>
> --
> Supun Kamburugamuva
> Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
> Member, Apache Software Foundation; http://www.apache.org
> WSO2 Inc.; http://wso2.org
> E-mail: supun@wso2.com; Mobile: +94 77 431 3585
> Blog: http://supunk.blogspot.com
>
>
>
>
--
Kasun Indrasiri
Senior Software Engineer,
WSO2 Inc. - "Lean . Enterprise . Middleware" - http://www.wso2.com/
Blog : http://kasunpanorama.blogspot.com/
Re: Synapse Quick Log entry
Posted by Piyum Fernando <pi...@wso2.com>.
On Fri, Jul 29, 2011 at 1:21 PM, Rajika Kumarasiri <ra...@wso2.com> wrote:
> Please create an issue in the issue tracker and attach the patch.
OK. I will.
>
>
> Rajika
>
> On Tue, Jul 26, 2011 at 6:00 PM, Piyum Fernando <pi...@wso2.com> wrote:
>
>> changes added. Please find the attachment.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
>> For additional commands, e-mail: dev-help@synapse.apache.org
>>
>
>
Re: Synapse Quick Log entry
Posted by Rajika Kumarasiri <ra...@wso2.com>.
Please create an issue in the issue tracker and attach the patch.
Rajika
On Tue, Jul 26, 2011 at 6:00 PM, Piyum Fernando <pi...@wso2.com> wrote:
> changes added. Please find the attachment.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
> For additional commands, e-mail: dev-help@synapse.apache.org
>
Re: Synapse Quick Log entry
Posted by Piyum Fernando <pi...@wso2.com>.
changes added. Please find the attachment.
Re: Synapse Quick Log entry
Posted by Piyum Fernando <pi...@wso2.com>.
On Tue, Jul 26, 2011 at 4:30 PM, Supun Kamburugamuva <su...@gmail.com>wrote:
> Hi Piyum,
>
> The syntax should be
>
> <log message="string | {expression}"/>
>
I will make the changes soon.
>
> Please have a look at the mediators like send for how this is done.
>
ok Sure.
>
> Thanks,
> Supun..
>
> On Tue, Jul 26, 2011 at 3:43 PM, Piyum Fernando <pi...@wso2.com> wrote:
>
>> I made some changes to LogMediator, LogMediatorFactory and
>> LogMediatorSerializer by adding the quick log feature which allows to add
>> quickly log a literal or expression. Patch file is attached.
>>
>> Examples;
>>
>> <log value = 'value' />
>>
>> <log expression = "XPath expression" />
>>
>> <log [(value="literal" | expression="xpath")] [level="string"] [separator="string"]>
>>
>>
>> <property name="string" (value="literal" | expression="xpath")/>*
>> </log>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
>> For additional commands, e-mail: dev-help@synapse.apache.org
>>
>
>
>
> --
> Supun Kamburugamuva
> Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
> Member, Apache Software Foundation; http://www.apache.org
> WSO2 Inc.; http://wso2.org
> E-mail: supun@wso2.com; Mobile: +94 77 431 3585
> Blog: http://supunk.blogspot.com
>
>
>
>
Re: Synapse Quick Log entry
Posted by Supun Kamburugamuva <su...@gmail.com>.
Hi Piyum,
The syntax should be
<log message="string | {expression}"/>
Please have a look at the mediators like send for how this is done.
Thanks,
Supun..
On Tue, Jul 26, 2011 at 3:43 PM, Piyum Fernando <pi...@wso2.com> wrote:
> I made some changes to LogMediator, LogMediatorFactory and
> LogMediatorSerializer by adding the quick log feature which allows to add
> quickly log a literal or expression. Patch file is attached.
>
> Examples;
>
> <log value = 'value' />
>
> <log expression = "XPath expression" />
>
> <log [(value="literal" | expression="xpath")] [level="string"] [separator="string"]>
>
> <property name="string" (value="literal" | expression="xpath")/>*
> </log>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
> For additional commands, e-mail: dev-help@synapse.apache.org
>
--
Supun Kamburugamuva
Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
Member, Apache Software Foundation; http://www.apache.org
WSO2 Inc.; http://wso2.org
E-mail: supun@wso2.com; Mobile: +94 77 431 3585
Blog: http://supunk.blogspot.com