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/06/30 08:25:04 UTC

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

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

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

Thanks [~cnauroth] for reviewing the patch. Worked on your comments and submitting the patch again

# It is not working becuase now defualt appender is ROLLINGFILE. It will not work even if ROLLINGFILE appender is set through ZOO_LOG4J_PROP
To make it work, used another environment variable ZOO_FOREGROUND_LOG4J_PROP, defualt vlaue is 
{code}
ZOO_FOREGROUND_LOG4J_PROP=INFO,CONSOLE
{code}
User can set this envrironment variable to change the log level
# {{zkCli.sh}}  should not ncessarity log on console. So I think it is OK, if it is logging in file.
There was another problem that even it was not logging in file. I have corrected that
# Same changes done in {{zkCli.sh}} also.
# Currenlty in windows scripts are not in place to show the proper running status of the server at the time of starup. Console log is the only immediate information to user to know the running status. 
If we make ROLLINGFILE appender as default the user will be clueless about what is going on. He has to look into log file even for run status. 
So if we sync these changes with Windows scripts, user experience will not be good, that is why not syncing with Windows.

> Zookeeper is not logging as per the configuration in log4j.properties
> ---------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2170
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2170
>             Project: ZooKeeper
>          Issue Type: Bug
>            Reporter: Arshad Mohammad
>            Assignee: Arshad Mohammad
>             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)