Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
switch to slf4j-log4j12 binding (instead of log4j-slf4j) - this only …
Browse files Browse the repository at this point in the history
…has internal/test effect as those dependencies are in provided scope
  • Loading branch information
Cihat Keser committed Mar 31, 2015
1 parent ee7938b commit bc3178a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 49 deletions.
9 changes: 2 additions & 7 deletions jest-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,8 @@
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>

<dependency>
Expand Down
9 changes: 2 additions & 7 deletions jest-droid/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,8 @@
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>

<dependency>
Expand Down
10 changes: 3 additions & 7 deletions jest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,16 @@
<artifactId>mockito-all</artifactId>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>

<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
Expand Down
10 changes: 10 additions & 0 deletions jest/src/test/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Root logger option
log4j.rootLogger=INFO, stdout
log4j.logger.org.elasticsearch=WARN
log4j.logger.io.searchbox.client.config.discovery.NodeChecker=FATAL

# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{HH:mm:ss} %-5p %c{1}:%L - %m%n
17 changes: 0 additions & 17 deletions jest/src/test/resources/log4j2.xml

This file was deleted.

14 changes: 3 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
<httpclientandroid.version>4.3.5.1</httpclientandroid.version>

<slf4j.version>1.7.10</slf4j.version>
<log4j.version>2.1</log4j.version>

<guava.version>18.0</guava.version>
<gson.version>2.3.1</gson.version>
Expand Down Expand Up @@ -280,16 +279,9 @@
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${log4j.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j.version}</version>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
<scope>provided</scope>
</dependency>

Expand Down

0 comments on commit bc3178a

Please sign in to comment.