You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nemo.apache.org by je...@apache.org on 2018/06/15 05:00:49 UTC

[incubator-nemo] branch master updated: [NEMO-35] Controlling logging levels while running tests (#35)

This is an automated email from the ASF dual-hosted git repository.

jeongyoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nemo.git


The following commit(s) were added to refs/heads/master by this push:
     new 02eb7c0  [NEMO-35] Controlling logging levels while running tests (#35)
02eb7c0 is described below

commit 02eb7c0b5a9918acbda8accba8b9b8841aa2b3c2
Author: Taegeon Um <ta...@gmail.com>
AuthorDate: Fri Jun 15 14:00:42 2018 +0900

    [NEMO-35] Controlling logging levels while running tests (#35)
    
    JIRA: NEMO-35: Controlling logging levels while running tests
    
    Major changes:
    * Change the logging level from DEBUG to INFO in log4j.properties
    
    Minor changes to note:
    N/A
    
    Tests for the changes:
    N/A
    
    Other comments:
    N/A
    
    resolves NEMO-35
---
 common/src/main/resources/log4j.properties |  7 +++---
 log4j.properties                           | 34 ------------------------------
 2 files changed, 4 insertions(+), 37 deletions(-)

diff --git a/common/src/main/resources/log4j.properties b/common/src/main/resources/log4j.properties
index 2db3985..55bcb79 100644
--- a/common/src/main/resources/log4j.properties
+++ b/common/src/main/resources/log4j.properties
@@ -12,9 +12,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-log4j.rootLogger=DEBUG, STDOUT
+log4j.rootLogger=INFO, STDOUT
 
-log4j.logger.edu.snu.nemo.runtime.master.MetricManagerMaster=DEBUG, METRIC
+log4j.logger.edu.snu.nemo.runtime.master.MetricManagerMaster=INFO, METRIC
 log4j.additivity.edu.snu.nemo.runtime.master.MetricManagerMaster=false
 
 log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
@@ -24,7 +24,8 @@ log4j.appender.STDOUT.layout.ConversionPattern=%5p %d{MM-dd HH:mm:ss,SSS} %C{1}:
 log4j.appender.METRIC=org.apache.log4j.FileAppender
 log4j.appender.METRIC.File=metric.log
 log4j.appender.METRIC.layout=org.apache.log4j.PatternLayout
-log4j.appender.METRIC.layout.ConversionPattern=%m%n
+log4j.appender.METRIC.layout.ConversionPattern=%5p %d{MM-dd HH:mm:ss,SSS} %C{1}:%L [%t] - %m%n
+
 
 # Sample appender
 #log4j.appender.file=org.apache.log4j.RollingFileAppender
diff --git a/log4j.properties b/log4j.properties
deleted file mode 100644
index 777f221..0000000
--- a/log4j.properties
+++ /dev/null
@@ -1,34 +0,0 @@
-#
-# Copyright (C) 2018 Seoul National University
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-log4j.rootLogger=DEBUG, STDOUT
-
-log4j.logger.edu.snu.nemo.runtime.master.MetricManagerMaster=DEBUG, METRIC
-log4j.additivity.edu.snu.nemo.runtime.master.MetricManagerMaster=false
-
-log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
-log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
-log4j.appender.STDOUT.layout.ConversionPattern=%5p %d{MM-dd HH:mm:ss,SSS} %C{1}:%L [%t] - %m%n
-
-log4j.appender.METRIC=org.apache.log4j.FileAppender
-log4j.appender.METRIC.File=metric.log
-log4j.appender.METRIC.layout=org.apache.log4j.PatternLayout
-log4j.appender.METRIC.layout.ConversionPattern=%5p %d{MM-dd HH:mm:ss,SSS} %C{1}:%L [%t] - %m%n
-
-# Sample appender
-#log4j.appender.file=org.apache.log4j.RollingFileAppender
-#log4j.appender.file.File=.\\logging.log
-#log4j.appender.file.layout=org.apache.log4j.PatternLayout
-#log4j.appender.file.layout.ConversionPattern=%5p %d{MM-dd HH:mm:ss,SSS} %C{1}:%L [%t] - %m%n

-- 
To stop receiving notification emails like this one, please contact
jeongyoon@apache.org.