Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.7
    • Fix Version/s: 0.10.0
    • Component/s: Configurator
    • Labels:
      None
    • Environment:
      Linux (SuSE)

      Description

      log4cxx's current default initializion is broken on Linux (and possibly a large number of other systems), because log4cxx sticks a little too close to log4j's ideas:

      The current mechanism is using environment variables containing
      a dot for its configuration. As stated in the short introduction:
      "The preferred way to specify the default initialization file is through the log4j.configuration environment variable."

      The problem is, that it's impossible to create environment variables containing a dot on Linux systems, meaning you're unable to use the preferred way of default initialization on Linux...

      I've created a small, backward-compatible patch, that goes on
      to check a few additional environment variables (LOG4J_CONFIGURATION
      and LOG4CXX_CONFIGURATION) if log4j.configuration is unset allowing
      UNIX-types to use these instead of the ones with the dot. The patch
      also updates the documentation in the short introduction.

        Activity

        Martin Landers created issue -
        Martin Landers made changes -
        Field Original Value New Value
        Attachment log4cxx_config.patch [ 17960 ]
        Curt Arnold made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Michaël CATANZARITI [ mcatan ] Curt Arnold [ carnold@apache.org ]
        Resolution Fixed [ 1 ]
        Fix Version/s 0.9.8 [ 10782 ]

          People

          • Assignee:
            Curt Arnold
            Reporter:
            Martin Landers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development