Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-127

tomcat:run - Configuring Logging with JULI

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0
    • backlog
    • tomcat6, tomcat7
    • None

    Description

      The configuration for a custom logging.properties is not taken into account with the tomcat6-7:run goal.
      From what I've seen, the reason is that the configuration for java.util.logging is done before setting the system properties in the same class loader.

      I think it could be fixed by putting a call to LogManager.getLogManager().readConfiguration(); right after setting the system properties. I'm not confident enough on the possible side effects to say it is the best solution.

      Attachments

        1. mtomcat-127.zip
          2 kB
          Xavier Dury

        Activity

          People

            olamy Olivier Lamy
            cedricc Cédric Couralet
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: