You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henryk Konsek (JIRA)" <ji...@apache.org> on 2012/08/22 15:27:44 UTC

[jira] [Created] (CAMEL-5533) Add loggingErrorHandler support to Scala DSL

Henryk Konsek created CAMEL-5533:
------------------------------------

             Summary: Add loggingErrorHandler support to Scala DSL
                 Key: CAMEL-5533
                 URL: https://issues.apache.org/jira/browse/CAMEL-5533
             Project: Camel
          Issue Type: Improvement
          Components: camel-scala
            Reporter: Henryk Konsek
            Assignee: Henryk Konsek
             Fix For: 2.11.0
         Attachments: CAMEL-5533.patch

Scala DSL doesn't provide loggingErrorHandler syntax (as Java DSL does).

In Java I can define loggingErrorHandler as follows:

from("direct:start").errorHandler(loggingErrorHandler().level(LoggingLevel.WARN).logName(""))...

In Scala the following doesn't compile:

"direct:start" errorHandler(loggingErrorHandler().level(LoggingLevel.WARN).logName("")) ...

Scala DSL should provide loggingErrorHandler builder method as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5533) Add loggingErrorHandler support to Scala DSL

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

Henryk Konsek updated CAMEL-5533:
---------------------------------

    Attachment: CAMEL-5533.patch
    
> Add loggingErrorHandler support to Scala DSL
> --------------------------------------------
>
>                 Key: CAMEL-5533
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5533
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-scala
>            Reporter: Henryk Konsek
>            Assignee: Henryk Konsek
>             Fix For: 2.11.0
>
>         Attachments: CAMEL-5533.patch
>
>
> Scala DSL doesn't provide loggingErrorHandler syntax (as Java DSL does).
> In Java I can define loggingErrorHandler as follows:
> from("direct:start").errorHandler(loggingErrorHandler().level(LoggingLevel.WARN).logName(""))...
> In Scala the following doesn't compile:
> "direct:start" errorHandler(loggingErrorHandler().level(LoggingLevel.WARN).logName("")) ...
> Scala DSL should provide loggingErrorHandler builder method as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5533) Add loggingErrorHandler support to Scala DSL

Posted by "Henryk Konsek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442366#comment-13442366 ] 

Henryk Konsek commented on CAMEL-5533:
--------------------------------------

Updated documentation [1].

[1] https://cwiki.apache.org/confluence/display/CAMEL/Scala+DSL+-+EIP
                
> Add loggingErrorHandler support to Scala DSL
> --------------------------------------------
>
>                 Key: CAMEL-5533
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5533
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-scala
>            Reporter: Henryk Konsek
>            Assignee: Henryk Konsek
>             Fix For: 2.11.0, 2.10.2
>
>         Attachments: CAMEL-5533.patch
>
>
> Scala DSL doesn't provide loggingErrorHandler syntax (as Java DSL does).
> In Java I can define loggingErrorHandler as follows:
> from("direct:start").errorHandler(loggingErrorHandler().level(LoggingLevel.WARN).logName(""))...
> In Scala the following doesn't compile:
> "direct:start" errorHandler(loggingErrorHandler().level(LoggingLevel.WARN).logName("")) ...
> Scala DSL should provide loggingErrorHandler builder method as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira