[ https://issues.apache.org/jira/browse/SYNAPSE-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ruwan Linton resolved SYNAPSE-606. ---------------------------------- Resolution: Fixed Fixed on the 1.3 branch as well as on the trunk > Add ability in log mediator to accept category for logged messages. > ------------------------------------------------------------------- > > Key: SYNAPSE-606 > URL: https://issues.apache.org/jira/browse/SYNAPSE-606 > Project: Synapse > Issue Type: Improvement > Reporter: Ruwan Linton > Assignee: Ruwan Linton > Fix For: 1.3 > > > There is a requirement from one of the WSO2 ESB users to specify the log > category in the log mediator as follows; > Currently when messages are logged they show up as INFO messages, add > attribute in log mediator to accept log message category so that they can be > logged as WARN or ERROR messages as specified in synapse.xml > Suggested change to log mediator category="ERROR" as shown below > <syn:log level="custom" category="ERROR"> > <syn:property name="text" value="An unexpected error occured"/> > <syn:property name="message" > expression="get-property('ERROR_MESSAGE')"/> > </syn:log> > this should log a log4j ERROR message in wso2-esb.log > It seems to be a nice improvement in general. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org For additional commands, e-mail: dev-h...@synapse.apache.org