Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-340

Is there a replacement for DomConfigurator in log4j2?

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-beta9
    • None
    • None

    Description

      For the company that I work for, our products are layered. In addition to that, they're not all always installed together. Therefore, the server has a base logging.xml, but a higher level product might want to add/override one logger. This could happen potentially at any level. This makes an interesting challenge for log4j2 only allowing one configuration file. We got this behavior in log4j by using the DomConfigurator. It would be nice if there was a way we could have this in log4j2. I know having this would be a challenge for the automatic configuration detection. It could use a log4j2 DomConfigurator that allows us to write out the new "compiled" logging.xml, then pass the new file to the ConfigurationSource. That way, we could still get the "compiled" logging.xml and using ConfigurationSource that would still allow for automatic configuration detection. Thoughts?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kurt.lehrke Kurt Lehrke
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: