Hi,

To separate a few things:

The logging infrastructure in core is already on the new
API in both 4.0 and master (#14066, #13832). What remains
is the call sites: most classes in maven-core, maven-impl
and maven-cli still obtain an slf4j Logger, and those
calls are bridged into the same LogSink. So nothing is
broken, and Christian's #14177 (parametrised messages) is
useful whatever we decide.

Whether those call sites should stay on slf4j or move to
the Maven Logger is, I think, an open question worth
discussing rather than assuming either way.

There is a second question I find harder. For a mojo,
using Maven logging is natural: it runs inside Maven and
gets it injected. But what about shared components
(maven-shared-*, maven-archiver, maven-filtering and
similar) that can also be used outside Maven? There I see
at least these options:

- stay on slf4j, bridged when running inside Maven
- depend on maven-api-log, which ties the component to
  Maven 4 and needs a LoggerManager when used standalone

Each gives a different answer on attribution, structured
context and how usable the library stays outside Maven.
It would be good to have a recommendation for component
authors before 4.0 GA, even if it is "slf4j is fine".

What do others think?

Sylwester

niedz., 29 lis 2026, 19:03 użytkownik Romain Manni-Bucau <
[email protected]> napisał:

> Hi Christian
>
> it can be wise to generalize it since we can store more metadata than
> relying only of MDC/NDC as a weak solution for context with our own API but
> it should be already parameterizable at a good level and extensible without
> breaking so I dont think there is any urge to do anything right now.
>
> Romain Manni-Bucau
> @rmannibucau <https://x.com/rmannibucau> | .NET Blog
> <https://dotnetbirdie.github.io/> | Blog <https://rmannibucau.github.io/>
> | Old
> Blog <http://rmannibucau.wordpress.com> | Github
> <https://github.com/rmannibucau> | LinkedIn
> <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/en-us/product/java-ee-8-high-performance-9781788473064
> >
> Javaccino <https://javaccino.dev/> founder (Java/.NET service - contact
> via
> linkedin)
>
>
> Le dim. 29 nov. 2026 à 11:57, Hervé Boutemy via dev <[email protected]>
> a écrit :
>
> > it seems a lot of work is happening for 4.2 before 4.0 is shipped...
> > or is it expected to be back-ported to 4.0?
> >
> > for my understanding, Christian, are you maintaining a plugin with a
> Maven
> > 4-
> > specific branch? or is it more a Maven 4 extensions?
> > or are you just thinking and anticipating how such changes in Maven 4
> APIs
> > will impact Maven 4 plugins in the future?
> >
> > Regards,
> >
> > Hervé
> >
> > Le dimanche 29 novembre 2026, 11:42:18 heure normale d’Europe centrale
> > Christian Grobmeier via dev a écrit :
> > > I read this:
> > > https://github.com/apache/maven/pull/13832
> > >
> > > I'm wondering what the ideas for core are. Should we migrate existing
> > slf4j
> > > calls there too? Or keep them? In latter case I'd like to improve
> > > parametrisation and such, in the former I'd be willing to do the
> > migration
> > >
> > > Pls let me know what the plans are here
> > >
> > > Thanks!
> > > Christian
> > >
> > > --
> > > The Apache Software Foundation
> > > V.P., Data Privacy
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>

Reply via email to