+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 <supu...@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-unsubscr...@synapse.apache.org >> For additional commands, e-mail: dev-h...@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: su...@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/