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

tomcat:run - Configuring Logging with JULI

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: backlog
    • Component/s: tomcat6, tomcat7
    • Labels:
      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

            • Assignee:
              olamy Olivier Lamy
              Reporter:
              cedricc C├ędric Couralet
            • Votes:
              7 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: