You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2018/02/27 16:32:38 UTC
[incubator-pulsar] branch master updated: Use log4j2 as slf4j
binding for tests (#1295)
This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new af44a88 Use log4j2 as slf4j binding for tests (#1295)
af44a88 is described below
commit af44a88e2bbb8005da3b676e0b86b691e0493fbc
Author: Sijie Guo <gu...@gmail.com>
AuthorDate: Tue Feb 27 08:32:35 2018 -0800
Use log4j2 as slf4j binding for tests (#1295)
* Use log4j2 as slf4j binding for tests
* Add license plugin for buildtools module
---
buildtools/pom.xml | 22 +++++++++++------
buildtools/src/main/resources/log4j2.yml | 42 ++++++++++++++++++++++++++++++++
pom.xml | 30 ++++++++++++++---------
3 files changed, 75 insertions(+), 19 deletions(-)
diff --git a/buildtools/pom.xml b/buildtools/pom.xml
index d561bfb..ae217e4 100644
--- a/buildtools/pom.xml
+++ b/buildtools/pom.xml
@@ -22,14 +22,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.pulsar</groupId>
- <artifactId>pulsar</artifactId>
- <version>2.0.0-incubating-SNAPSHOT</version>
- <relativePath>..</relativePath>
- </parent>
-
+ <groupId>org.apache.pulsar</groupId>
<artifactId>buildtools</artifactId>
+ <version>2.0.0-incubating-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Pulsar Build Tools</name>
@@ -37,7 +32,20 @@
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
+ <version>6.13.1</version>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.mycila</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <version>3.0.rc1</version>
+ <configuration>
+ <header>../src/license-header.txt</header>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/buildtools/src/main/resources/log4j2.yml b/buildtools/src/main/resources/log4j2.yml
new file mode 100644
index 0000000..4295d72
--- /dev/null
+++ b/buildtools/src/main/resources/log4j2.yml
@@ -0,0 +1,42 @@
+#
+# 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.
+#
+
+Configuration:
+ name: test
+
+ Appenders:
+
+ # Console
+ Console:
+ name: Console
+ target: SYSTEM_OUT
+ PatternLayout:
+ Pattern: "%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"
+
+ Loggers:
+
+ Root:
+ level: info
+ AppenderRef:
+ - ref: Console
+
+ Logger:
+ name: org.apache.bookkeeper.mledger
+ level: info
+ additivity: false
diff --git a/pom.xml b/pom.xml
index e5a6154..6b2dd08 100644
--- a/pom.xml
+++ b/pom.xml
@@ -361,12 +361,6 @@ flexible messaging model and an intuitive client API.</description>
</dependency>
<dependency>
- <groupId>com.fasterxml.jackson.dataformat</groupId>
- <artifactId>jackson-dataformat-yaml</artifactId>
- <version>${jackson.version}</version>
- </dependency>
-
- <dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
@@ -603,8 +597,24 @@ flexible messaging model and an intuitive client API.</description>
<dependencies>
<!-- These dependencies are common to all the submodules -->
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
+ <groupId>org.apache.pulsar</groupId>
+ <artifactId>buildtools</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-core</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-slf4j-impl</artifactId>
<scope>test</scope>
</dependency>
@@ -671,10 +681,6 @@ flexible messaging model and an intuitive client API.</description>
<configuration>
<argLine> -Xmx2G -XX:MaxDirectMemorySize=8G
-Dio.netty.leakDetectionLevel=advanced
- -Dorg.slf4j.simpleLogger.showDateTime=true
- -Dorg.slf4j.simpleLogger.log.org.apache.zookeeper=off
- -Dorg.slf4j.simpleLogger.log.org.apache.bookkeeper=off
- -Dorg.slf4j.simpleLogger.log.org.apache.bookkeeper.mledger=info
</argLine>
<reuseForks>false</reuseForks>
<forkCount>1</forkCount>
--
To stop receiving notification emails like this one, please contact
mmerli@apache.org.