You can also consider creating your own logger appender that would send the
log events to the channel that could be understood by Camel. Or maybe use
JMS Topic appender [1] as a bridge between the Logger and Camel.

Cheers!

[1] http://logback.qos.ch/manual/appenders.html#JMSTopicAppender

pon., 20.07.2015 o 12:12 użytkownik Claus Ibsen <[email protected]>
napisał:

> Hi
>
> You can try using paxlogging
> http://camel.apache.org/pax-logging
>
> But afair it only reads new events.
>
> If you want to read a log file, you would need to use the file or
> stream component and read the file directly from the file system.
>
>
> On Mon, Jul 20, 2015 at 11:49 AM, BURN, James <[email protected]> wrote:
> > Hi
> >
> > I wonder if it is possible to use Camel to access the ServiceMix ROOT
> log. We're running Camel 2.13.2 under ServiceMix 5.1.1.
> >
> > I've tried:
> >
> > <route id="ROOTLogger">
> >             <from uri="log:ROOT" />
> >             <to uri="file:ROOTlog"/>
> > </route>
> >
> > But get loads of "Body is null" errors.
> >
> > I'm ultimately trying to create email alerts based on the ServiceMix
> ROOT log, and manage this with Camel.
> >
> > Thanks for any advice.
> >
> > James
> >
> >
> >
> >
> >
> > Oxford University Press (UK) Disclaimer
> >
> > This message is confidential. You should not copy it or disclose its
> contents to anyone. You may use and apply the information for the intended
> purpose only. OUP does not accept legal responsibility for the contents of
> this message. Any views or opinions presented are those of the author only
> and not of OUP. If this email has come to you in error, please delete it,
> along with any attachments. Please note that OUP may intercept incoming and
> outgoing email communications.
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2nd edition: http://www.manning.com/ibsen2
>

Reply via email to