gnodet opened a new pull request, #12929: URL: https://github.com/apache/maven/pull/12929
## Summary Forward-port of #12690 (merged into `maven-4.0.x`) to `master`. Brings the following Log API enhancements to master: - **`Log.trace()`** — new trace level (SLF4J TRACE) with `default` no-op implementations to prevent `AbstractMethodError` for existing third-party `Log` implementors - **`Log.child(name)`** — creates a sub-logger with an independently filterable hierarchical name - **Logger name alignment** — uses the mojo implementation class name instead of the goal name - **Mojo MDC propagation** — sets `maven.mojo.id` in SLF4J MDC during mojo execution, fork-aware (saves/restores across forked lifecycles) - **Bug fix** — `DefaultLog.warn(Supplier, Throwable)` was delegating to `logger.info()` instead of `logger.warn()` - **`isXxxEnabled()` guards** — added to `Throwable`-only log overloads - **`DefaultLogTest`** — 5 new tests covering trace delegation, warn bug fix, child loggers, and backward compatibility Once this merges, #12694 will be rebased on top to layer the master-only additions (structured `LogEvent`, JUL handler, `LogSink`, `withMetadata`/`StackWalker`). ## Related - #12690 — original PR (merged into `maven-4.0.x`, milestone 4.1.0) - #12694 — logging foundation on master (will be rebased after this merges) ## Test plan - [x] Cherry-pick applied cleanly (no conflicts) - [ ] CI on master 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
