Hi, ZooKeeper uses log4j. You provide a log4j configuration file to customize where/what to log.
http://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_logging The files under the data directory are transaction log files. They don't have any log messages in it. ZooKeeper pre-allocates disk space for transaction log files for efficiency. --Michi On Fri, Apr 4, 2014 at 2:07 PM, chaitanya_r <[email protected]> wrote: > I am completely new to Zookeeper and trying to understand where the zookeeper > maintains its log files. > > On my windows machine I observed a log file called > "dataDir\version-2\log.1", I tried opening it using Notepad++ and my notepad > hanged permanently as the file size is very large. Also I see that this file > is encrypted and not in human readable format, so how to open and read this > file? > > Also I just started zookeeper server and connected to it using a client then > create a znode, and this resulted in this "dataDir\version-2\log.1" file > which is of 64MB, is this normal? Because I just ran very basic commands but > still it created a file of 64MB. > > > > -- > View this message in context: > http://zookeeper-user.578899.n2.nabble.com/Where-to-check-for-Zookeeper-logs-tp7579737.html > Sent from the zookeeper-user mailing list archive at Nabble.com.
