Weaver created ZOOKEEPER-5031:
---------------------------------

             Summary: logback.xml ignores Java system properties
                 Key: ZOOKEEPER-5031
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-5031
             Project: ZooKeeper
          Issue Type: Bug
          Components: audit
    Affects Versions: 3.9.5
         Environment: Zookeeper version: 3.9.5

OS: Alma Linux 9.7

Environment variable:

ZOO_LOG_DIR=/var/log/zookeeper
            Reporter: Weaver
            Assignee: Mohammad Arshad


The standard configuration of logback.xml ignores Java system properties. The 
comment in the file says "Define some default values that can be overridden by 
system properties" and attempts to do so, but the syntax appears to be 
inaccurate. Despite setting the environment variable *ZOO_LOG_DIR* the audit 
logfile is still placed in the running directory. I'm not sure if this is the 
proper website for logback, but this reference says that local scope wins:

[https://logback.qos.ch/manual/configuration.html#lookupOrder]

Directly underneath that is how to properly set a default value 
([https://logback.qos.ch/manual/configuration.html#defaultValuesForVariables).] 

I'm not sure a default value is needed since the startup scrips and properties 
files set sensible default already.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to