Question

On startup JGroups 2.7.0. GA writes to System.out a message along the lines of:

---------------------------------------------------------
GMS: address is 10.0.3.35:48641 (cluster=blabla)
---------------------------------------------------------

I want to either suppress it or redirect it using Log4j ( which the rest of the framework uses ).

Ideas?


I don't want to redirect System.out by itself since that usually causes more trouble than it's worth.

Was it helpful?

Solution

You can suppress the printing of the GMS address by setting in your XML

<pbcast.GMS print_local_addr="false" ...>

Works on JGroups 2.5.1 as well.

OTHER TIPS

You can't redirect System.out to log4j that makes no sense. After all how would log4j print anything ? It would get stuck in a loop.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top