[
https://issues.apache.org/jira/browse/ZOOKEEPER-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14605579#comment-14605579
]
Arshad Mohammad commented on ZOOKEEPER-2170:
--------------------------------------------
Submitted the patch ZOOKEEPER-2170-002.patch.
1) Changed default logger to ROLLINGFILE in log4j.properteis
2) Removed the default value assignment to ZOO_LOG4J_PROP, so that default
logger from log4j.properties are used
3) Default values for ZOO_LOG_FILE and ZOO_LOG_DIR are not removed because
these default values make more sense than those which are specified in
log4j.properties. Log file name has some dynamic portion in it. If default used
for log directory from log4j.properties then it is location will depend on from
where the command is being executed, which is not correct.
> 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-002.patch, 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)