Repository: incubator-s2graph Updated Branches: refs/heads/master 0520ffc17 -> bb9738f26
migrate log4j.properties to log4j2.xml Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/741bf47d Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/741bf47d Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/741bf47d Branch: refs/heads/master Commit: 741bf47d0f62fb9720d461e27e4264f4f313fb84 Parents: 0520ffc Author: sandyskies <[email protected]> Authored: Fri Mar 23 11:57:16 2018 +0800 Committer: sandyskies <[email protected]> Committed: Fri Mar 23 11:57:16 2018 +0800 ---------------------------------------------------------------------- conf/log4j.properties | 27 --------------------------- conf/log4j2.xml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 27 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/741bf47d/conf/log4j.properties ---------------------------------------------------------------------- diff --git a/conf/log4j.properties b/conf/log4j.properties deleted file mode 100644 index c13e516..0000000 --- a/conf/log4j.properties +++ /dev/null @@ -1,27 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you 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=${root.logger} -root.logger=INFO,console -log4j.appender.console=org.apache.log4j.ConsoleAppender -log4j.appender.console.target=System.err -log4j.appender.console.layout=org.apache.log4j.PatternLayout -log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n - -# The noisier spark/kafka logs are suppressed -log4j.logger.org.apache.spark=WARN,console -log4j.logger.org.apache.kafka=WARN,console http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/741bf47d/conf/log4j2.xml ---------------------------------------------------------------------- diff --git a/conf/log4j2.xml b/conf/log4j2.xml new file mode 100644 index 0000000..f96ecf1 --- /dev/null +++ b/conf/log4j2.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<Configuration status="INFO"> + <Appenders> + <Console name="console" target="SYSTEM_ERR"> + <PatternLayout pattern="%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n"/> + </Console> + </Appenders> + <Loggers> + <Root level="INFO"> + <AppenderRef ref="console"/> + </Root> + <Logger level="WARN" name="org.apache.spark"> + <AppenderRef ref="console"/> + </Logger> + <Logger level="WARN" name="org.apache.kafka"> + <AppenderRef ref="console"/> + </Logger> + </Loggers> +</Configuration>
