You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Eric Bouer (JIRA)" <ji...@apache.org> on 2009/11/18 14:14:52 UTC
[jira] Created: (CAMEL-2199) Introduce a new log component for
dynamic logging.
Introduce a new log component for dynamic logging.
--------------------------------------------------
Key: CAMEL-2199
URL: https://issues.apache.org/activemq/browse/CAMEL-2199
Project: Apache Camel
Issue Type: Improvement
Components: camel-core
Reporter: Eric Bouer
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-2199) Introduce a new log component for
dynamic logging.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-2199:
-------------------------------
Priority: Minor (was: Major)
Fix Version/s: 2.2.0
Issue Type: New Feature (was: Improvement)
> Introduce a new log component for dynamic logging.
> --------------------------------------------------
>
> Key: CAMEL-2199
> URL: https://issues.apache.org/activemq/browse/CAMEL-2199
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Eric Bouer
> Priority: Minor
> Fix For: 2.2.0
>
>
> It's a common task to preform logging of human message with dynamic content like headers/properties or anything else that can be produced with one of the dynamic languages.
> Right now the way to do it is .wireTap("log:mylog", new SimpleExpression("Processing ${header.ID}")
> It would be nice to have something more simple like :
> from("somewhere").to("humanlog:Processing ${header.ID}")
> or even:
> from("somewhere").hlog("Processing ${header.ID}") that allows the same functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-2199) Introduce a new log component for
dynamic logging.
Posted by "Eric Bouer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Bouer updated CAMEL-2199:
------------------------------
Description:
It's a common task to preform logging of human message with dynamic content like headers/properties or anything else that can be produced with one of the dynamic languages.
Right now the way to do it is .wireTap("log:mylog", new SimpleExpression("Processing ${header.ID}")
It would be nice to have something more simple like :
from("somewhere").to("humanlog:Processing ${header.ID}")
or even:
from("somewhere").hlog("Processing ${header.ID}") that allows the same functionality.
> Introduce a new log component for dynamic logging.
> --------------------------------------------------
>
> Key: CAMEL-2199
> URL: https://issues.apache.org/activemq/browse/CAMEL-2199
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Eric Bouer
>
> It's a common task to preform logging of human message with dynamic content like headers/properties or anything else that can be produced with one of the dynamic languages.
> Right now the way to do it is .wireTap("log:mylog", new SimpleExpression("Processing ${header.ID}")
> It would be nice to have something more simple like :
> from("somewhere").to("humanlog:Processing ${header.ID}")
> or even:
> from("somewhere").hlog("Processing ${header.ID}") that allows the same functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-2199) Introduce a new log component for
dynamic logging.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-2199.
--------------------------------
Resolution: Fixed
trunk: 892606.
See wiki details here
http://cwiki.apache.org/confluence/display/CAMEL/LogEIP
> Introduce a new log component for dynamic logging.
> --------------------------------------------------
>
> Key: CAMEL-2199
> URL: https://issues.apache.org/activemq/browse/CAMEL-2199
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Eric Bouer
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.2.0
>
> Attachments: CAMEL-2199.zip
>
>
> It's a common task to preform logging of human message with dynamic content like headers/properties or anything else that can be produced with one of the dynamic languages.
> Right now the way to do it is .wireTap("log:mylog", new SimpleExpression("Processing ${header.ID}")
> It would be nice to have something more simple like :
> from("somewhere").to("humanlog:Processing ${header.ID}")
> or even:
> from("somewhere").hlog("Processing ${header.ID}") that allows the same functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2199) Introduce a new log component for
dynamic logging.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55593#action_55593 ]
Claus Ibsen commented on CAMEL-2199:
------------------------------------
Eric Bouer is working on this. Maybe if he shape it well it can be contributed back to Apache?
> Introduce a new log component for dynamic logging.
> --------------------------------------------------
>
> Key: CAMEL-2199
> URL: https://issues.apache.org/activemq/browse/CAMEL-2199
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Eric Bouer
>
> It's a common task to preform logging of human message with dynamic content like headers/properties or anything else that can be produced with one of the dynamic languages.
> Right now the way to do it is .wireTap("log:mylog", new SimpleExpression("Processing ${header.ID}")
> It would be nice to have something more simple like :
> from("somewhere").to("humanlog:Processing ${header.ID}")
> or even:
> from("somewhere").hlog("Processing ${header.ID}") that allows the same functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2199) Introduce a new log component for
dynamic logging.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56080#action_56080 ]
Claus Ibsen commented on CAMEL-2199:
------------------------------------
Thanks Eric
Lets get it into Camel 2.2.
I wonder if we should introduce a DSL for it? eventLog
Which also allows you to use any Expression so you can use JUEL, OGNL, Groovy etc. to compute the log message.
> Introduce a new log component for dynamic logging.
> --------------------------------------------------
>
> Key: CAMEL-2199
> URL: https://issues.apache.org/activemq/browse/CAMEL-2199
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Eric Bouer
> Priority: Minor
> Fix For: 2.2.0
>
> Attachments: CAMEL-2199.zip
>
>
> It's a common task to preform logging of human message with dynamic content like headers/properties or anything else that can be produced with one of the dynamic languages.
> Right now the way to do it is .wireTap("log:mylog", new SimpleExpression("Processing ${header.ID}")
> It would be nice to have something more simple like :
> from("somewhere").to("humanlog:Processing ${header.ID}")
> or even:
> from("somewhere").hlog("Processing ${header.ID}") that allows the same functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-2199) Introduce a new log component for
dynamic logging.
Posted by "Eric Bouer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Bouer updated CAMEL-2199:
------------------------------
Attachment: CAMEL-2199.zip
×Here is a basic implementation of this component.
Basic usage goes like:
from("direct:a").to("elog:Hello ${header.FOO}")
This component uses the logcomponent formatter so it can accept the same format options, However since exchange logging is optional. it must be on for the formatter options to have any effect. e.g:
from("seda:b")
.to("elog:Whassup ${header.FOO}?showExchange=true&showBody=true");
This component lacks groupSize option for throughput logging control.
P.S
WireTap can't really do the same as I said on the description.
The only way to achieve the same functionality without this component is using .recipientList(new SimleExpression("log:hello ${header}")) , this has the downside of creating a new endpoint for each message with a different header value.which this component solves.
> Introduce a new log component for dynamic logging.
> --------------------------------------------------
>
> Key: CAMEL-2199
> URL: https://issues.apache.org/activemq/browse/CAMEL-2199
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Eric Bouer
> Priority: Minor
> Fix For: 2.2.0
>
> Attachments: CAMEL-2199.zip
>
>
> It's a common task to preform logging of human message with dynamic content like headers/properties or anything else that can be produced with one of the dynamic languages.
> Right now the way to do it is .wireTap("log:mylog", new SimpleExpression("Processing ${header.ID}")
> It would be nice to have something more simple like :
> from("somewhere").to("humanlog:Processing ${header.ID}")
> or even:
> from("somewhere").hlog("Processing ${header.ID}") that allows the same functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-2199) Introduce a new log component for
dynamic logging.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-2199:
----------------------------------
Assignee: Claus Ibsen
> Introduce a new log component for dynamic logging.
> --------------------------------------------------
>
> Key: CAMEL-2199
> URL: https://issues.apache.org/activemq/browse/CAMEL-2199
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Eric Bouer
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.2.0
>
> Attachments: CAMEL-2199.zip
>
>
> It's a common task to preform logging of human message with dynamic content like headers/properties or anything else that can be produced with one of the dynamic languages.
> Right now the way to do it is .wireTap("log:mylog", new SimpleExpression("Processing ${header.ID}")
> It would be nice to have something more simple like :
> from("somewhere").to("humanlog:Processing ${header.ID}")
> or even:
> from("somewhere").hlog("Processing ${header.ID}") that allows the same functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.