Repository: helix Updated Branches: refs/heads/master 0e8490353 -> b3ee27d4a
Enable our scripts to be able to pump log lines into the console. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/b3ee27d4 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/b3ee27d4 Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/b3ee27d4 Branch: refs/heads/master Commit: b3ee27d4a663d4b586191bc1b23e9c0d90cf6a1f Parents: ae02b58 Author: Lei Xia <[email protected]> Authored: Thu Feb 8 10:51:31 2018 -0800 Committer: Lei Xia <[email protected]> Committed: Tue Mar 20 11:31:47 2018 -0700 ---------------------------------------------------------------------- helix-core/pom.xml | 1 + helix-core/src/main/config/log4j.properties | 21 ++++++++++----------- 2 files changed, 11 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/helix/blob/b3ee27d4/helix-core/pom.xml ---------------------------------------------------------------------- diff --git a/helix-core/pom.xml b/helix-core/pom.xml index b94a108..b6a2539 100644 --- a/helix-core/pom.xml +++ b/helix-core/pom.xml @@ -189,6 +189,7 @@ under the License. <groupId>org.codehaus.mojo</groupId> <artifactId>appassembler-maven-plugin</artifactId> <configuration> + <extraJvmArguments>-Dlog4j.configuration=file://"$BASEDIR"/conf/log4j.properties</extraJvmArguments> <programs> <program> <mainClass>org.apache.helix.controller.HelixControllerMain</mainClass> http://git-wip-us.apache.org/repos/asf/helix/blob/b3ee27d4/helix-core/src/main/config/log4j.properties ---------------------------------------------------------------------- diff --git a/helix-core/src/main/config/log4j.properties b/helix-core/src/main/config/log4j.properties index 4b3dc31..5c183a1 100644 --- a/helix-core/src/main/config/log4j.properties +++ b/helix-core/src/main/config/log4j.properties @@ -16,16 +16,15 @@ # specific language governing permissions and limitations # under the License. # +# Set root logger level to INFO and its only appender to A1. +log4j.rootLogger=INFO, console -# Set root logger level to DEBUG and its only appender to A1. -log4j.rootLogger=ERROR,A1 +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.Target=System.out +log4j.appender.console.threshold=INFO +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=[%d] [%-5p] [%t] [%c:%L] - %m%n -# A1 is set to be a ConsoleAppender. -log4j.appender.A1=org.apache.log4j.ConsoleAppender - -# A1 uses PatternLayout. -log4j.appender.A1.layout=org.apache.log4j.PatternLayout -log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n - -log4j.logger.org.I0Itec=ERROR -log4j.logger.org.apache=ERROR +log4j.logger.org.I0Itec=INFO +log4j.logger.org.apache=INFO +log4j.logger.org.apache.helix=INFO
