Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect log4j.properties in LocalEnvironment #106

Closed
wants to merge 1 commit into from

Conversation

rmetzger
Copy link
Contributor

...instead of just disabling all logging by default

@@ -95,7 +95,9 @@ public boolean isLoggingEnabled() {
}

private void initLogging() {
LogUtils.initializeDefaultConsoleLogger(logging ? Level.INFO : Level.OFF);
if(System.getProperty("log4j.properties") == null) {
LogUtils.initializeDefaultConsoleLogger(logging ? Level.INFO : Level.OFF);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not take the log level from the log4j.properties as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that Log4J is reading the properties file if there is one (so it will automatically take the log level from it)

@rmetzger
Copy link
Contributor Author

rmetzger commented Sep 1, 2014

We should probably wait with this pull request until @tillrohrmann has finished the switch over to the new logging framework.

@tillrohrmann
Copy link
Contributor

This pull request should be obsolete once #111 has been merged. This pull request requires henceforth that the configuration of the logging framework is done by providing a configuration file. If the configuration file is not provided, then the default settings are used. Currently, logback is chosen as the slf4j binding and logback set the log level to DEBUG by default and prints everything on stdout.

@rmetzger rmetzger closed this Sep 2, 2014
@rmetzger rmetzger deleted the log4j branch March 24, 2015 09:14
zhijiangW pushed a commit to zhijiangW/flink that referenced this pull request Jul 23, 2019
tzulitai pushed a commit to tzulitai/flink that referenced this pull request Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants