Skip to content

Use ILog API for logging in org.eclipse.jdt.junit.core#2987

Open
vogella wants to merge 1 commit into
eclipse-jdt:masterfrom
vogella:use-ilog-in-junit-core-plugin
Open

Use ILog API for logging in org.eclipse.jdt.junit.core#2987
vogella wants to merge 1 commit into
eclipse-jdt:masterfrom
vogella:use-ilog-in-junit-core-plugin

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented May 15, 2026

Replace the JUnitCorePlugin.log() wrapper methods with direct use of the Eclipse ILog API. Files with multiple logging call sites get a private static final ILog field via ILog.of(MyClass.class); single-call sites use ILog.of(MyClass.class) inline. This removes the indirection through the plugin activator and stamps each log entry with the bundle that actually owns the code, rather than always attributing it to the UI plugin.

Replace JavaPlugin/JUnitCorePlugin.log() wrapper calls with direct ILog
usage. Files with multiple call sites get a static ILog.of(MyClass.class)
field; single-call sites use ILog.of(MyClass.class) inline. Also removes
the now-unused log() helper methods from JUnitCorePlugin.
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