Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4859

Console output pattern should be customizable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.2.1, 3.0
    • None
    • Logging
    • None

    Description

      http://stackoverflow.com/questions/3890746/maven-output-with-displaying-plugingoalproject-for-each-line-as-prefix/3895261#3895261

      The main idea is, that a lot of plugins produce many console lines. If I look for some problem, it is boring and hard to scroll back top see that which built project, which plugin, which execution is wrong. It would be real good to have some possibility to customize console output like PatternLayout in log4j. The following improvements I suggest:

      • leave the possibility to customize severity. For example instead of [INFO] [I] would be sufficient.
      • if console log pattern could be defined, colorizing log would be enabled http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html
      • If you would define thread locals with a map containing project name, id, coordinate, running plugin coordinate, execution id, then it would be possible to ensure, that no scrolling is needed to see plugin and project. Providing aliases could be also enabled. So a console line would look like this:

      2010.01.11 12:33 mygroup:myartifact dependency:resolve[execid] [i] Dependency could not be resolved.

      What do you think? Would not it be good?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gabor.liptak Gábor Lipták
              Votes:
              11 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: