Removing JGroups: GMS launch message

When starting JGroups 2.7.0. GA writes a message to System.out line by line:

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

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

Ideas?


I don't want to redirect System.out myself, because usually it causes more problems than it costs.

+4
source share
2 answers

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

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

Also works with JGroups 2.5.1.

+4
source

You cannot redirect System.out to log4j, which makes no sense. After all, how would log4j print anything? He would be stuck in a loop.

0
source

Source: https://habr.com/ru/post/1286463/


All Articles