Skip to content

Remove bundled logback.xml from tahu-core#445

Open
LivingLikeKrillin wants to merge 1 commit into
eclipse-tahu:developfrom
LivingLikeKrillin:fix/276-remove-tahu-core-logback
Open

Remove bundled logback.xml from tahu-core#445
LivingLikeKrillin wants to merge 1 commit into
eclipse-tahu:developfrom
LivingLikeKrillin:fix/276-remove-tahu-core-logback

Conversation

@LivingLikeKrillin

Copy link
Copy Markdown

Summary

org.eclipse.tahu:tahu-core ships java/lib/core/src/main/resources/logback.xml with the root logger at TRACE. Because it sits at the root of the published jar, it lands on the classpath of every downstream application — forcing verbose TRACE output and colliding with the application's own logback configuration (which copy "wins" is classpath-order dependent). This is the problem reported in #276.

A library should rely on slf4j-api only and leave logging backend configuration to the consuming application. This PR removes the bundled config from the library.

Change

  • Remove java/lib/core/src/main/resources/logback.xml (tahu-core).

Deliberately out of scope (happy to add if you'd prefer)

  • The example applications under java/compat_impl/{edge,host} keep their own logback.xml — those are applications, so a bundled config is appropriate there. (Optionally their root level could be lowered TRACEINFO.)
  • tahu-core's logback-classic dependency could additionally be narrowed (e.g. to test scope) so the library no longer pulls a logging backend onto downstream classpaths. That's a larger change, left out of this minimal fix.

Notes

Fixes #276

A library should not ship a logback backend configuration. tahu-core
includes src/main/resources/logback.xml with the root logger set to
TRACE, which lands on the classpath of every downstream application,
forces verbose output, and collides with the application's own logging
setup (which copy wins is classpath-order dependent). Logging
configuration is the responsibility of the application, not a library;
tahu-core should rely on slf4j-api only. The example applications under
java/compat_impl keep their own logback.xml since those are apps.

Fixes eclipse-tahu#276

Signed-off-by: Jooyoung Jung <livinglikekrillin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant