Is there any way to disconnect messages from zookeeper?

I am using zookeeper successfully. It saves updates and warnings about print status in the shell, which actually makes it difficult to debug my program (which does not work, as well as zookeeper). Is there an easy way to disable this in zookeeper without entering the source code? Or is there a way to run a java program so that only the recipient program gets print in the shell?

+4
source share
3 answers

Isn't the Zookeeper Admin Guide chapter what you really want?

ZooKeeper uses it log4j, so this is a fairly standard approach to registration, with more configuration flexibility available.

0
source

By default, zookeeper emits INFO or higher severity messages, and log4j is used for logging. Therefore, set the logging level to a higher severity level in log4j.properties (provided that you provide the path to .properties or in the working directory)

0
source

ZooKeeper - :

zoo_set_log_stream(fopen("NULL", "w"));

ZooKeeper

0

All Articles