You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by James Green <ja...@gmail.com> on 2016/02/24 10:48:08 UTC

Use Simple to log Message History?

Is this possible?

We really just want to from().log("${exchange.history}").to() in our route.
Seems like this should be really easy?

Thanks,

James

Re: Use Simple to log Message History?

Posted by James Green <ja...@gmail.com>.
Yeah we switched that on and nothing happened. Must have been us but it
seemed pretty simple!

On 24 February 2016 at 11:34, Claus Ibsen <cl...@gmail.com> wrote:

> You can use the tracer
> http://camel.apache.org/tracer
>
> On Wed, Feb 24, 2016 at 12:12 PM, James Green <ja...@gmail.com>
> wrote:
> > Our use-case was in debugging why a processor was being triggered twice.
> We
> > wanted to log immediately before the processor to see where the Exchange
> > came from second time around.
> >
> > I see a few people via Google asking how to log where the Exchange has
> > been, thought something like this would be a useful quick tool in the
> > toolbox.
> >
> > On 24 February 2016 at 10:35, Claus Ibsen <cl...@gmail.com> wrote:
> >
> >> What kind of logging do you want.
> >>
> >> Do you mean that verbose logging you see when there is an exception?
> >>
> >> The message history on the exchange is stored as a list of events that
> >> track the details. But the formatting is done elsewhere.
> >>
> >>
> >>
> >> On Wed, Feb 24, 2016 at 10:48 AM, James Green <james.mk.green@gmail.com
> >
> >> wrote:
> >> > Is this possible?
> >> >
> >> > We really just want to from().log("${exchange.history}").to() in our
> >> route.
> >> > Seems like this should be really easy?
> >> >
> >> > Thanks,
> >> >
> >> > James
> >>
> >>
> >>
> >> --
> >> Claus Ibsen
> >> -----------------
> >> http://davsclaus.com @davsclaus
> >> Camel in Action 2: https://www.manning.com/ibsen2
> >>
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Re: Use Simple to log Message History?

Posted by Claus Ibsen <cl...@gmail.com>.
You can use the tracer
http://camel.apache.org/tracer

On Wed, Feb 24, 2016 at 12:12 PM, James Green <ja...@gmail.com> wrote:
> Our use-case was in debugging why a processor was being triggered twice. We
> wanted to log immediately before the processor to see where the Exchange
> came from second time around.
>
> I see a few people via Google asking how to log where the Exchange has
> been, thought something like this would be a useful quick tool in the
> toolbox.
>
> On 24 February 2016 at 10:35, Claus Ibsen <cl...@gmail.com> wrote:
>
>> What kind of logging do you want.
>>
>> Do you mean that verbose logging you see when there is an exception?
>>
>> The message history on the exchange is stored as a list of events that
>> track the details. But the formatting is done elsewhere.
>>
>>
>>
>> On Wed, Feb 24, 2016 at 10:48 AM, James Green <ja...@gmail.com>
>> wrote:
>> > Is this possible?
>> >
>> > We really just want to from().log("${exchange.history}").to() in our
>> route.
>> > Seems like this should be really easy?
>> >
>> > Thanks,
>> >
>> > James
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> http://davsclaus.com @davsclaus
>> Camel in Action 2: https://www.manning.com/ibsen2
>>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Re: Use Simple to log Message History?

Posted by James Green <ja...@gmail.com>.
Our use-case was in debugging why a processor was being triggered twice. We
wanted to log immediately before the processor to see where the Exchange
came from second time around.

I see a few people via Google asking how to log where the Exchange has
been, thought something like this would be a useful quick tool in the
toolbox.

On 24 February 2016 at 10:35, Claus Ibsen <cl...@gmail.com> wrote:

> What kind of logging do you want.
>
> Do you mean that verbose logging you see when there is an exception?
>
> The message history on the exchange is stored as a list of events that
> track the details. But the formatting is done elsewhere.
>
>
>
> On Wed, Feb 24, 2016 at 10:48 AM, James Green <ja...@gmail.com>
> wrote:
> > Is this possible?
> >
> > We really just want to from().log("${exchange.history}").to() in our
> route.
> > Seems like this should be really easy?
> >
> > Thanks,
> >
> > James
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Re: Use Simple to log Message History?

Posted by Claus Ibsen <cl...@gmail.com>.
What kind of logging do you want.

Do you mean that verbose logging you see when there is an exception?

The message history on the exchange is stored as a list of events that
track the details. But the formatting is done elsewhere.



On Wed, Feb 24, 2016 at 10:48 AM, James Green <ja...@gmail.com> wrote:
> Is this possible?
>
> We really just want to from().log("${exchange.history}").to() in our route.
> Seems like this should be really easy?
>
> Thanks,
>
> James



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2