Skip to content

Commit

Permalink
log4j2
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzBuehmann committed Oct 13, 2020
1 parent d2c97b0 commit 33399a0
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
4 changes: 4 additions & 0 deletions interfaces/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</dependency>
</dependencies>

<reporting>
Expand Down
16 changes: 16 additions & 0 deletions interfaces/src/main/resources/log4j2.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
status = error
dest = err
name = PropertiesConfig

filter.threshold.type = ThresholdFilter
filter.threshold.level = info

appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %m%n
appender.console.filter.threshold.type = ThresholdFilter
appender.console.filter.threshold.level = info

rootLogger.level = info
rootLogger.appenderRef.stdout.ref = STDOUT
20 changes: 15 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -896,11 +896,11 @@
<!--This is the bridge that ties calls from the slf4j api to the log4j
framework. This is a runtime dependency for programs which wish to use log4j
as their implementation. -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.slf4j</groupId>-->
<!-- <artifactId>slf4j-log4j12</artifactId>-->
<!-- <version>${slf4j.version}</version>-->
<!-- </dependency>-->

<!-- This is the concrete implementation of the log4j framework - it is
a runtime dependency that needs to be used with the slf4j-log4j12 dependency -->
Expand Down Expand Up @@ -960,12 +960,22 @@
<artifactId>google-collections</artifactId>
<groupId>com.google.collections</groupId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.aksw</groupId>
<artifactId>semlibsvm</artifactId>
<version>3.20</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down

0 comments on commit 33399a0

Please sign in to comment.