You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Arshad Mohammad (JIRA)" <ji...@apache.org> on 2015/04/20 13:36:58 UTC

[jira] [Commented] (ZOOKEEPER-2170) Zookeeper is not logging as per the configuraiton in log4j.properties

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14502672#comment-14502672 ] 

Arshad Mohammad commented on ZOOKEEPER-2170:
--------------------------------------------

log4j gives preference to system properties over properties in log4j.properties
zookeeper.root.logger is configured in log4j.properties as well as it is being passed as system property from zkServer.sh
{code}
nohup "$JAVA" $ZOO_DATADIR_AUTOCREATE "-Dzookeeper.log.dir=${ZOO_LOG_DIR}" "-Dzookeeper.log.file=${ZOO_LOG_FILE}" \
    "-Dzookeeper.root.logger=${ZOO_LOG4J_PROP}" \
{code} 
This is the reason {color:red}zookeeper.root.logger{color} property in {color:red}log4j.properties{color} is never used.

> 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
>             Fix For: 3.6.0
>
>
> 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)