Skip to content

Commit

Permalink
Disable Loggin in CDP4J
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel0888 committed Jan 19, 2025
1 parent 76b9913 commit 9707b7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions adapter/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<configuration>
<!-- Root Logger: nur WARN und ERROR ausgeben -->
<root level="warn">
<appender-ref ref="CONSOLE" />
</root>

<!-- CDP4J-spezifisches Logging auf WARN reduzieren -->
<!-- Der Gradle import slf4j-nop muss dann aber aus den subprojekt für cdp4j entfernt sein -->
<logger name="cdp4j" level="warn" />
</configuration>
3 changes: 2 additions & 1 deletion cdp4j/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ dependencies {
implementation 'com.google.code.gson:gson:2.8.0'

// SLF4J API
implementation 'org.slf4j:slf4j-api:1.7.36' // oder eine passende Version
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'org.slf4j:slf4j-nop:1.7.36' // No-Op-Logger (suppresses Logging)

testImplementation 'junit:junit:4.12'
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
Expand Down

0 comments on commit 9707b7d

Please sign in to comment.