[
https://issues.apache.org/jira/browse/ZOOKEEPER-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Nauroth updated ZOOKEEPER-2170:
-------------------------------------
Attachment: ZOOKEEPER-2170.001.patch
Thank you, Arshad. I know existing deployments are dependent on the current
setup with these environment variables and system properties, so I'm inclined
to leave it mostly intact. However, I also think needing to set 2 separate
properties to achieve debug logging is a bit cumbersome.
Maybe one thing we could safely do here is to set the thresholding to {{ALL}}.
(Patch attached.) With that in place, you could set just {{ZOO_LOG4J_PROP}} to
achieve debug logging. ZOOKEEPER-980 states that the goal was consistency with
Hadoop's logging configuration, and Hadoop sets thresholding to {{ALL}}.
This could still be seen as a backwards-incompatible change if admins were
dependent on the existing thresholding. Maybe this change still can go into
trunk though. I'm not familiar with ZooKeeper's versioning and compatibility
guidelines, so I'll need to defer to established contributors to make that call.
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}
> 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)