Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-26

Default initialization is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9.7
    • 0.10.0
    • Configurator
    • None
    • 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.

      Attachments

        1. log4cxx_config.patch
          4 kB
          Martin Landers

        Activity

          People

            carnold@apache.org Curt Arnold
            martin.landers Martin Landers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: