Skip to content

Commit

Permalink
Migrate log bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
javiertuya committed Jul 12, 2024
1 parent 5f6fa11 commit 4ad9eae
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 63 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<surefire.version>3.3.0</surefire.version>
<tdrules.version>4.3.0</tdrules.version>
<qagrow.version>1.4.266</qagrow.version>
<qagrow.version>1.4.267</qagrow.version>
</properties>

<modules>
Expand Down Expand Up @@ -53,12 +53,12 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.36</version>
<version>2.0.13</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.13</version>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j2-impl</artifactId>
<version>2.23.1</version>
<scope>test</scope>
</dependency>

Expand Down
37 changes: 37 additions & 0 deletions st-tdg-eval/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="ConsoleAppender" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n%throwable"/>
</Console>
<File name="FileAppender" fileName="target/eval-pestsore.log">
<PatternLayout pattern="%d [%t] %-5level %logger{36} - %msg%n%throwable"/>
</File>
</Appenders>
<Loggers>
<Root level="info">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Root>
<Logger name="giis" level="debug" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Logger>
<Logger name="test4giis" level="debug" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Logger>
<Logger name="giis.tdrules.client.oa" level="debug" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Logger>
<Logger name="giis.tdrules.model.transform.SchemaSorter" level="info" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Logger>
<Logger name="giis.tdrules.store.loader.oa.OaLiveAdapter" level="trace" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Logger>
</Loggers>
</Configuration>
28 changes: 0 additions & 28 deletions st-tdg-eval/src/test/resources/logback.xml

This file was deleted.

4 changes: 2 additions & 2 deletions st-tdg-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j2-impl</artifactId>
</dependency>

<dependency>
Expand Down
37 changes: 37 additions & 0 deletions st-tdg-test/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="ConsoleAppender" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n%throwable"/>
</Console>
<File name="FileAppender" fileName="target/st-tdg-test.log">
<PatternLayout pattern="%d [%t] %-5level %logger{36} - %msg%n%throwable"/>
</File>
</Appenders>
<Loggers>
<Root level="info">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Root>
<Logger name="giis" level="debug" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Logger>
<Logger name="test4giis" level="debug" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Logger>
<Logger name="giis.tdrules.client.oa" level="debug" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Logger>
<Logger name="giis.tdrules.model.transform.SchemaSorter" level="info" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Logger>
<Logger name="giis.tdrules.store.loader.oa.OaLiveAdapter" level="trace" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="FileAppender"/>
</Logger>
</Loggers>
</Configuration>
28 changes: 0 additions & 28 deletions st-tdg-test/src/test/resources/logback.xml

This file was deleted.

0 comments on commit 4ad9eae

Please sign in to comment.