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

Dynamic Configuration of Log4cxx XML with Properties is not proper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • None
    • Configurator
    • None
    • Windows XP SP 2/7, Visual Studio 2010.

    Description

      Dear Team,
      Thanks for the wonderful logging framework.

      In my application, the Log4cxx Configuration XML file contain few fields in appender with %properties

      {Property Name}

      . The properties are set using log4cxx::MDC::put method in my program. When doing the first time configuration, the DOMConfigurator configures the data properly because of the available thread context.
      But if we update the configuration file dynamically without re-starting the application, the thread is not having any MDC data. Hence the property is empty when re-configuring using dynamic usage of the DOMConfigurator.

      Kindly help me to resolve this issue.

      Thanks in advance.

      Attachments

        1. Sample_log4cxx.xml
          2 kB
          balajilbk

        Activity

          People

            Unassigned Unassigned
            balaji.lbk balajilbk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified