You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dermoritz <ta...@hotmail.com> on 2014/07/14 13:58:37 UTC
Throughput logger logs every message - how to configure properly?
I created a utility class that provides getter for a throughput logger. this
is the method:
public LogEndpoint getTpLogger(final String name) {
LogEndpoint endpoint = context.getEndpoint("log:" + name,
LogEndpoint.class);
//endpoint.setGroupSize(0);
endpoint.setGroupInterval(new Long(interval));
endpoint.setGroupDelay(new Long(interval));
endpoint.setGroupActiveOnly(false);
return endpoint;
}
First i am not sure if i need to set groupsize if i set groupinterval, but
with both this logger logs every message. I see log output for correct name
but with this "normal" log output:
[ default-workqueue-2] throughput INFO
Exchange[ExchangePattern: InOnly, BodyType:
org.apache.cxf.message.MessageContentsList, Body:
[com.me.EventResponseType@5203419e]]
in my current test "interval" is 3000
--
View this message in context: http://camel.465427.n5.nabble.com/Throughput-logger-logs-every-message-how-to-configure-properly-tp5753784.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Throughput logger logs every message - how to configure
properly?
Posted by dermoritz <ta...@hotmail.com>.
This is beeing fixed in 2.14:
https://issues.apache.org/jira/browse/CAMEL-7599
Thanks for that!
--
View this message in context: http://camel.465427.n5.nabble.com/Throughput-logger-logs-every-message-how-to-configure-properly-tp5753784p5753827.html
Sent from the Camel - Users mailing list archive at Nabble.com.