[jira] [Created] (FLINK-16883) No support for log4j2 configuration formats besides properties

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-16883) No support for log4j2 configuration formats besides properties

Shang Yuanchun (Jira)
Fabian Paul created FLINK-16883:
-----------------------------------

             Summary: No support for log4j2 configuration formats besides properties
                 Key: FLINK-16883
                 URL: https://issues.apache.org/jira/browse/FLINK-16883
             Project: Flink
          Issue Type: Improvement
          Components: Command Line Client
    Affects Versions: 1.11.0
            Reporter: Fabian Paul


If `flink.console.sh` is used to start a Flink cluster the env java opts precede the log settings. ([link|[https://github.com/apache/flink/blob/1444fd68115594b872201242886b4d789f4b26a5/flink-dist/src/main/flink-bin/bin/flink-console.sh#L73]]

This way the log settings `log4.configurationFile` will always overwrite previous keys. Since the `log4j.configurationFile` is set to `log4j.properties` it is not possible to leverage other formats than properties for the configuration.

 

My proposal would be to switch the order of the configurations that the log settings precede the env java opts. Users could then overwrite the default file with their configurations.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)