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

Dynamic Configuration of Log4cxx XML with Properties is not proper

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: Configurator
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              Unassigned
              Reporter:
              balaji.lbk balajilbk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

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