<p>After upgrade Flink 1.10 to Flink 1.11, the log4j configuration is no longer working.</p>
<p>my previous configuration was using a library with an adapter that requires log4j 1.x and is no longer compatible with Flink 1.11</p>
<p>according to the new configuration, the  flink-conf.yaml should look like this</p>
<pre><code>log4j-console.properties: |+
    # This affects logging for both user code and Flink
    rootLogger.level = INFO
    rootLogger.appenderRef.console.ref = ConsoleAppender
    rootLogger.appenderRef.rolling.ref = RollingFileAppender

    # Uncomment this if you want to _only_ change Flink's logging
    #logger.flink.name = org.apache.flink
    #logger.flink.level = INFO
</code></pre>
<p>my current configuration using log4j1 looks something similar to this</p>
<pre><code>log4j-console.properties: |+
         log4j.rootLogger=INFO,myappender,console
         log4j.appender.myappender=com.company.log4j.MyAppender
         log4j.appender.myappender.endpoints=http://
</code></pre>
<p>is there a way to tell Flink 1.11 to use log4j1 in the flink-conf.yaml file?</p>

Edgar Ferney Ruiz Anzola
<p>As far as I know, <code>flink-conf.yaml</code> does not contain <code>log4j-console.properties</code> section and this is a separate file. What you have specified I suppose is a part of <code>flink-configuration-configmap.yaml</code> cluster resource definition.</p>
<p>According to the flink <a href="https://ci.apache.org/projects/flink/flink-docs-stable/monitoring/logging.html#configuring-log4j1" rel="nofollow noreferrer">Configuring Log4j1 Section</a>, in order to use log4j1, you need to:</p>
<ul>
<li>remove the <code>log4j-core</code>, <code>log4j-slf4j-impl</code> and <code>log4j-1.2-api</code> jars from the lib directory,</li>
<li>add the <code>log4j</code>, <code>slf4j-log4j12</code> and <code>log4j-to-slf4j</code> jars to the lib directory,</li>
</ul>
