You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by MichaelAtSAG <me...@gmail.com> on 2013/12/10 00:20:19 UTC

camel log

All,
I am trying to implement a simple route endpoint that will result in message
stats logged every 10s, with an initial 60s delay and stats should be
displayed even if there isn't any message traffic.

--I followed this convention:--

http://camel.apache.org/log.html

--I put together this route:--

            <route id="TwitterToNERV">
                <from id="TwitterConsumer" uri="twitterConsumer" />
                
                <to id="streamOut" uri="stream:out" />
                
                <to
uri="log:whatDoIputHere?level=DEBUG&amp;groupInterval=100&amp;groupDelay=600&amp;groupActiveOnly=false;"
/>
                <to uri="webappWebsocketEndpointObject" />
            </route>

--This bean:--
        <bean id="logFormatter"
class="com.softwareag.eda.nerv.example.twitter.TwitterToNERVCustomExchangeFormatter"
/>

--This class:--

public class TwitterToNERVCustomExchangeFormatter implements
ExchangeFormatter {

	@Override
	public String format(Exchange arg0) {
		// TODO Auto-generated method stub
		System.out.println("here2");
		return "here";
	}
}


The route and streamout is working, yet the log out is not. I think I am
missing something basic here, as no output is displayed in the log. The app
is running as a webapp in tomcat.



--
View this message in context: http://camel.465427.n5.nabble.com/camel-log-tp5744520.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel log

Posted by Christian Posta <ch...@gmail.com>.
"whatGoesHere" would be the logger name, as in org.apache.camel.processor

Glad you figured out what you had issues with.

On Mon, Dec 9, 2013 at 3:28 PM, MichaelAtSAG <me...@gmail.com> wrote:
> I figured this out, had to set the level to INFO.
>
> Thanks!
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-log-tp5744520p5744521.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta

Re: camel log

Posted by MichaelAtSAG <me...@gmail.com>.
I figured this out, had to set the level to INFO.

Thanks!



--
View this message in context: http://camel.465427.n5.nabble.com/camel-log-tp5744520p5744521.html
Sent from the Camel - Users mailing list archive at Nabble.com.