Re: how to specify the log level?
Posted by
Attila BernĂ¡th on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/how-to-specify-the-log-level-tp329p338.html
I have a solution.
> Assume I stand in the root directory of the incubator-flink repo.
mkdir flink-addons/flink-spargel/src/main/resources
cp ./flink-examples/flink-java-examples/src/main/resources/log4j.properties
flink-addons/flink-spargel/src/main/resources/
(This file contains 1 line:
log4j.rootLogger=OFF
)
This prevents any log outputs.
However, if I also set the JVM argument (in eclipse
Run/Configurations/Arguments/VM arguments):
-Dlog4j.configuration="/home/sudocker/git/incubator-flink/flink-addons/flink-spargel/src/main/resources/log4j.properties"
then I get the warning:
log4j:WARN No appenders could be found for logger
(org.apache.flink.runtime.blob.BlobServer).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See
http://logging.apache.org/log4j/1.2/faq.html#noconfigfor more info.
Attila