[
https://issues.apache.org/jira/browse/ZOOKEEPER-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14602484#comment-14602484
]
Arshad Mohammad commented on ZOOKEEPER-2170:
--------------------------------------------
Lets me further clarify what are the problems with the current default
configuration as per my understanding
Suppose I downloaded latest zookeeper, installed and run it without any
configuration change
Log will go to console logger and console is redirected to file
zookeeper-root-server-host-name.out
{color:red}Problem 1:{color} This file keeps on growing, if zookeeper runs many
number of days or logging frequency is high(in case errors), this file will
grow in GBs, big enough that it can not be open
{color:red}Problem 2:{color} When I restart the zookeeper, it will overwrite
the previous zookeeper-root-server-host-name.out file and create new file, all
the log history is gone
{color:red}Problem 3:{color} after observing Problem 1 and Problem 2 any user
would go and modify the log4.properties but it would not do any effect, as I
explained in my earlier comments
you are right [~rgs], [~cnauroth] 's patch in a way to align with hadoop's
configuration.
But it is different form what is the expectation of this JIRA. May be
[~cnauroth] 's patch can be committed as part of different JIRA
Expectation of this JIRA is:
1) Default logging behaviour should come from log4.properties
2) It is good if we can make ROLLINGFILE as the default logger
> Zookeeper is not logging as per the configuraiton in log4j.properties
> ----------------------------------------------------------------------
>
> Key: ZOOKEEPER-2170
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2170
> Project: ZooKeeper
> Issue Type: Bug
> Reporter: Arshad Mohammad
> Assignee: Chris Nauroth
> Fix For: 3.6.0
>
> Attachments: ZOOKEEPER-2170.001.patch
>
>
> In conf/log4j.properties default root logger is
> {code}
> zookeeper.root.logger=INFO, CONSOLE
> {code}
> Changing root logger to bellow value or any other value does not change
> logging effect
> {code}
> zookeeper.root.logger=DEBUG, ROLLINGFILE
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)