Skip to content

[MNG-6662] More concise logging #8571

Closed as not planned
Closed as not planned

Description

@jira-importer

Vasiliy Kudriavtsev opened MNG-6662 and commented

Maven supports configurable logging, but sometimes even more flexibility is required.

ExecutionEventLogger logs build events, but in a big (280+) modules its output is redundant, and slows down execution as it is logged to console. (+5 sec to a 60 sec build, 6-core Core i7, 32 GB RAM, -T8 parallelism)

I dont need in log a lot of information like this:

 
INFO``] — maven-clean-plugin:``3``.``0``.``0``:clean (default-clean) @ executor ---
[``INFO``]
[``INFO``] — flatten-maven-plugin:``1``.``1``.``0``:clean (flatten.clean) @ executor ---
[``INFO``]
[``INFO``] — build-helper-maven-plugin:``1``.``9``.``1``:parse``-version (parse-version) @ executor ---
[``INFO``]
[``INFO``] — maven-enforcer-plugin:``3``.``0``.``0``-``M1``:enforce (enforce-tools) @ executor ---
[``INFO``]
[``INFO``] — buildnumber-maven-plugin:``1``.3_p1``:create (build-commit) @ executor ---
 

Still, I would like to see build summary in the end, like 
Reactor Summary ``for g5-xbsl-executor ``0``.``0``.``57``-``72``:
[``INFO``]
[``INFO``] g5-xbsl-executor ................................... ``SUCCESS [  ``0``.``963 s]
[``INFO``] com.e1c.g5.executor.compiletime .................... ``SUCCESS [  ``3``.``485 s]
[``INFO``] com.e1c.g5.executor.runtime ........................ ``SUCCESS [  ``7``.``171 s]
[``INFO``] com.e1c.g5.executor.core ........................... ``SUCCESS [  ``2``.``762 s]
[``INFO``] com.e1c.g5.executor.client ......................... ``SUCCESS [ ``12``.``966 s]
[``INFO``] com.e1c.g5.executor.idesupport ..................... ``SUCCESS [  ``6``.``848 s]
[``INFO``] ------------------------------------------------------------------------
[``INFO``] ``BUILD SUCCESS
[``INFO``] ------------------------------------------------------------------------
[``INFO``] Total time:  ``32``.``135 s (Wall Clock)
[``INFO``] Finished at: ``2019{-}05{-}28T11``:``57``:``40``+``03``:``00
 

 

I propose adding a new command-line option, for example -cbl (-concise-build-logging) to force ExecutionEventLogger log only

projectDiscoveryStarted

sessionStarted

sessionEnded

projectStarted

projectSkipped

thus excluding mojo-related events


Remote Links:

Activity

  1. jira-importer commented on May 28, 2019

    @jira-importer
    Author

    Michael Osipov commented

    Maybe we should work with SLF4J markers which are passed to Logback to be filtered?

  2. jira-importer commented on May 28, 2019

    @jira-importer
    Author

    Michael Osipov commented

    That's true, but your you could swap for logback, can't you?

  3. jira-importer commented on May 29, 2019

    @jira-importer
    Author

    Vasiliy Kudriavtsev commented

     That's true, but your you could swap for logback, can't you?

    Michael Osipov, I could but that would mean additional setup for every developer.

    I can implement both approaches - add a command-line arguemtn AND markers for those who are ready for fine tuning

  4. jira-importer commented on May 30, 2019

    @jira-importer
    Author

    Robert Scholte commented

    I'd prefer not to introduce a new option for this, especially because this one is about a personal taste of logging. Others might want to have a bit more logging or a bit less logging.

  5. added
    enhancement
    priority:minor
    on Jul 6, 2025
  6. gnodet commented on Oct 14, 2026

    @gnodet
    Contributor

    Closing as superseded by #12571, which provides concise logging through console modes (--console=plain|rich), warning summary (--warning-mode=summary), and the DiagnosticCollector for deduplicated diagnostics.

    Claude Code on behalf of Guillaume Nodet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:minor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions