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

Commit

Permalink
[POAE7-1418] remove some dependencies to log4j, add log4j2 configurat…
Browse files Browse the repository at this point in the history
…ions (#220)
  • Loading branch information
iyupeng authored Dec 15, 2021
1 parent d466fa2 commit d29c824
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Plasma-based-cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,13 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.15.0</version>
<version>2.16.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>2.15.0</version>
<version>2.16.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
16 changes: 16 additions & 0 deletions oap-ape/ape-java/ape-client/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Extra logging related to initialization of Log4j
# Set to debug or trace if log4j initialization is failing
status = warn
# Name of the configuration
name = ConsoleLogConfig

# Console appender configuration
appender.console.type = Console
appender.console.name = consoleLogger
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

# Root logger level
rootLogger.level = info
# Root logger referring to console appender
rootLogger.appenderRef.stdout.ref = consoleLogger
5 changes: 0 additions & 5 deletions oap-ape/ape-java/ape-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.15.0</version>
</dependency>
<dependency>
<groupId>org.apache.parquet</groupId>
<artifactId>parquet-column</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions oap-ape/ape-java/ape-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
<artifactId>ape-common</artifactId>
<version>${ape.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.16.0</version>
</dependency>

<!-- Test dependencies -->
<dependency>
Expand Down
16 changes: 16 additions & 0 deletions oap-ape/ape-java/ape-server/src/main/resources/log4j2.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Extra logging related to initialization of Log4j
# Set to debug or trace if log4j initialization is failing
status = warn
# Name of the configuration
name = ConsoleLogConfig

# Console appender configuration
appender.console.type = Console
appender.console.name = consoleLogger
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

# Root logger level
rootLogger.level = info
# Root logger referring to console appender
rootLogger.appenderRef.stdout.ref = consoleLogger
16 changes: 16 additions & 0 deletions oap-ape/ape-java/ape-server/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Extra logging related to initialization of Log4j
# Set to debug or trace if log4j initialization is failing
status = warn
# Name of the configuration
name = ConsoleLogConfig

# Console appender configuration
appender.console.type = Console
appender.console.name = consoleLogger
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

# Root logger level
rootLogger.level = info
# Root logger referring to console appender
rootLogger.appenderRef.stdout.ref = consoleLogger

0 comments on commit d29c824

Please sign in to comment.