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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to