[
https://issues.apache.org/jira/browse/ZOOKEEPER-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14516397#comment-14516397
]
Arshad Mohammad commented on ZOOKEEPER-2170:
--------------------------------------------
Thanks [~cnauroth] for looking into the issue again.
The patch ZOOKEEPER-2170.001.patch is slightly in different direction.
My concern is simply that default logging should be as per the log4j.properties.
{quote}
BTW, if your goal is just to get the debug logging on with a small simple
log4j.properties change, then maybe the simplest thing is just to change the
root logger setting completely so that it bypasses the environment variables
and system properties:
{code}
#log4j.rootLogger=${zookeeper.root.logger}
log4j.rootLogger=DEBUG, CONSOLE
{code}
{quote}
This issue is not about how to make it work. But it is about how it should be
be by default.
{color:red}If other people also feel the same then lets modify the default
behavior otherwise leave as it is. {color}
> 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)