Skip to content

fix: standardize plugin logging levels and messages - #201

Merged
rawvoid merged 18 commits into
mainfrom
dev
Aug 2, 2026
Merged

fix: standardize plugin logging levels and messages#201
rawvoid merged 18 commits into
mainfrom
dev

Conversation

@rawvoid

@rawvoid rawvoid commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

Standardize logging across model-mutating plugins:

  • INFO: success counts only
  • DEBUG: per-item success detail (with FQCNs where useful)
  • WARN: problems/skips (aggregated multi-line when many); no SAXParseException stack spam under the Maven plugin

Plugins

  • RenameClass, ElementWrapper, DedupeClass, PromoteNestedClass
  • RemoveUnusedClass (also drops custom -verbose; use SLF4J levels)
  • FlattenMultiElementProp, RenameMultiElementProp

Also

  • Review follow-ups: capture element names before clearing className in dedupe; accurate flatten DEBUG for partial adds; clearer conflict/rename labels

Test plan

  • Focused suites for each touched plugin (local)
  • CI on this PR

rawvoid and others added 18 commits August 2, 2026 16:37
Aggregate rename conflicts into one multi-line WARN with old→new detail
lines (simple-name, ancestor-nested, object-factory). Log each applied
rename at DEBUG and keep INFO as a count only. Enrich invalid mapping
warnings with the rule pattern.
Use DEBUG for each flatten with Owner.prop → Wrapper, INFO summaries with
counts for flatten/remove, and multi-line WARN for kept wrappers (with
reason) and stale annotation owners after later model merges.
Replace string concatenation with String.formatted for conflict detail
lines and arrow formatting; keep SLF4J placeholders for actual log calls.
Keep INFO as the removed count only; emit the class list at DEBUG so default
Maven builds stay quiet while details remain available when debugging.
Log each accepted merge and enum merge at DEBUG with victim → host form;
keep INFO for merge and element-class-clear counts only. Aggregate
ObjectFactory collisions into one multi-line WARN.
…style

Log each successful one-level lift at DEBUG as type (from → to); keep INFO
as the hop count only. Polish ObjectFactory skip wording for consistency.
…tyle

Always log removed counts at INFO and name lists at DEBUG; drop the custom
-verbose flag in favor of SLF4J levels. Update the test and wiki accordingly.
…apper style

Log each successful property split at DEBUG as Owner.prop → [fields]; keep
INFO as the flatten count only.
fix(rename-class): improve conflict and rename log readability
fix(element-wrapper): align logging style (INFO count, DEBUG detail)
fix(dedupe-class): align logging with rename/element-wrapper style
fix(promote-nested-class): align logging style
fix(remove-unused-class): align logging; drop -verbose flag
…ogging

fix(flatten-multi-element-prop): align logging style
Capture element FQCNs before clearing className in dedupe; log renames and
conflict arrows with full names; DEBUG only fields actually added by flatten;
use labeled wrapper wording in element-wrapper DEBUG lines.
Log each property rename at DEBUG as Owner.prop → newName; keep INFO as the
rename count only. Document logging in the class Javadoc.
fix(plugins): address logging review findings
…gging

fix(rename-multi-element-prop): align logging style
@github-actions github-actions Bot added the bug Something isn't working label Aug 2, 2026
@sonarqubecloud

sonarqubecloud Bot commented Aug 2, 2026

Copy link
Copy Markdown

@rawvoid
rawvoid merged commit d5f9869 into main Aug 2, 2026
4 checks passed
@rawvoid
rawvoid deleted the dev branch August 2, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant