Skip to content

Commit

Permalink
DBZ-5934 fix logging for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smiklosovic authored and jpechane committed Dec 14, 2022
1 parent 31d570a commit 681cb63
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
<configuration>

<appender name="CONSOLE"
class="ch.qos.logback.core.ConsoleAppender">
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{ISO8601} %-5p %X{dbz.connectorType}|%X{dbz.connectorName}|%X{dbz.connectorContext} %m [%c]%n</pattern>
</encoder>
</appender>

<root level="warn">
<appender-ref ref="CONSOLE" />
<appender-ref ref="CONSOLE"/>
</root>

<!-- Set up the default logging to be INFO level, then override specific
units -->
<!-- Set up the default logging to be INFO level, then override specific units -->
<logger name="io.debezium" level="info" additivity="false">
<appender-ref ref="CONSOLE" />
<appender-ref ref="CONSOLE"/>
</logger>
<logger
name="io.debezium.embedded.EmbeddedEngine$EmbeddedConfig"
level="warn" additivity="false">
<appender-ref ref="CONSOLE" />
<logger name="io.debezium.embedded.EmbeddedEngine$EmbeddedConfig" level="warn" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
</configuration>
</configuration>
19 changes: 19 additions & 0 deletions cassandra-4/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<configuration>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{ISO8601} %-5p %X{dbz.connectorType}|%X{dbz.connectorName}|%X{dbz.connectorContext} %m [%c]%n</pattern>
</encoder>
</appender>

<root level="warn">
<appender-ref ref="CONSOLE"/>
</root>

<!-- Set up the default logging to be INFO level, then override specific units -->
<logger name="io.debezium" level="info" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="io.debezium.embedded.EmbeddedEngine$EmbeddedConfig" level="warn" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
</configuration>
19 changes: 19 additions & 0 deletions core/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<configuration>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{ISO8601} %-5p %X{dbz.connectorType}|%X{dbz.connectorName}|%X{dbz.connectorContext} %m [%c]%n</pattern>
</encoder>
</appender>

<root level="warn">
<appender-ref ref="CONSOLE"/>
</root>

<!-- Set up the default logging to be INFO level, then override specific units -->
<logger name="io.debezium" level="info" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="io.debezium.embedded.EmbeddedEngine$EmbeddedConfig" level="warn" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
</configuration>

0 comments on commit 681cb63

Please sign in to comment.