You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Ruwan Linton (JIRA)" <ji...@apache.org> on 2010/01/29 09:25:36 UTC

[jira] Created: (SYNAPSE-606) Add ability in log mediator to accept category for logged messages.

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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Assigned: (SYNAPSE-606) Add ability in log mediator to accept category for logged messages.

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruwan Linton reassigned SYNAPSE-606:
------------------------------------

    Assignee: Ruwan Linton

> 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
>
> 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-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Updated: (SYNAPSE-606) Add ability in log mediator to accept category for logged messages.

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruwan Linton updated SYNAPSE-606:
---------------------------------

    Fix Version/s: 1.3

> 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-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Resolved: (SYNAPSE-606) Add ability in log mediator to accept category for logged messages.

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
     [ 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-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org