Re: How to use my custom log4j.properties when running minicluster in idea

Posted by Yun Tang on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/How-to-use-my-custom-log4j-properties-when-running-minicluster-in-idea-tp26244p26250.html

Hi Peibin

I believe you could refer to the directory structure of flink/flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/wordcount/WordCount.java, and the its log4j.properties file located at flink/flink-examples/flink-examples-streaming/src/main/resources/log4j.properties .

You could compare your directory structure and the file contents with those I mentioned above and I believe you could finally make it work.

Best
Yun Tang

From: peibin wang <[hidden email]>
Sent: Tuesday, February 19, 2019 12:04
To: [hidden email]
Subject: How to use my custom log4j.properties when running minicluster in idea
 

Hi,

       I am running flink job in the Intellij IDEA  with mini cluster (not submit it to the flink cluster ) for  convenience .

Now I have put my custom log config file ( both log4j.properties and logback.xml)  in src/main/resources/. But it does not work. Is there any solutions