Maven 1

Allow to setup logging configuration with log4j properties

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0.2, 1.1-beta-1, 1.1-beta-2
  • Fix Version/s: 1.1-beta-3
  • Component/s: core
  • Labels:
    None
  • Number of attachments :
    0

Description

Actually we have only three levels of logs for maven and its plugins :

  • debug (-X option)
  • normal
  • quiet (-Q option)
    We can't use a fine grain configuration for the logging.
    For example, put in debug only the logger "org.apache.maven.linkcheck"
    log4j.org.apache.maven.linkcheck=DEBUG
    I propose that we add the code to allow to define log4j properties (http://logging.apache.org/log4j/docs/api/org/apache/log4j/PropertyConfigurator.html) to setup logging.
    These settings can be defined in any level where our properties are read (System properties, User properties, Project properties).

Activity

Hide
Arnaud Heritier added a comment -

Done.
You can setup the logging with properties in the command line (as system properties) or in a properties file (in the project or the user home).

Show
Arnaud Heritier added a comment - Done. You can setup the logging with properties in the command line (as system properties) or in a properties file (in the project or the user home).

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: