Log4cxx
  1. Log4cxx
  2. LOGCXX-12

the threshold of ApenderSkeleton can not be set by calling setOption.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.7
    • Fix Version/s: 0.10.0
    • Component/s: Appender
    • Labels:
      None
    • Environment:
      windows xp, MSVC6 MSVC7.1

      Description

      the threshold of AppenderSkeleton can not be set by calling setOption.

      thus ,the property of threshold in the derived classes of AppenderSkeleton can not properly configured by PropertyConfigurator or DOMConfigurator.

        Issue Links

          Activity

          Hide
          Haohua Xie added a comment -

          this is my resolution:
          rewrite AppenderSkeleton::setOption as following
          #include <log4cxx/helpers/stringhelper.h>

          void AppenderSkeleton::setOption(const String& name, const String& value){
          if (StringHelper::equalsIgnoreCase(_T("threshold"), name))

          { setThreshold(Level::toLevel(value,Level::ALL)); }

          }

          Show
          Haohua Xie added a comment - this is my resolution: rewrite AppenderSkeleton::setOption as following #include <log4cxx/helpers/stringhelper.h> void AppenderSkeleton::setOption(const String& name, const String& value){ if (StringHelper::equalsIgnoreCase(_T("threshold"), name)) { setThreshold(Level::toLevel(value,Level::ALL)); } }
          Hide
          Curt Arnold added a comment -

          This bug has triplicated (but fixed), LOGCXX-12, 27- and -28.

          Show
          Curt Arnold added a comment - This bug has triplicated (but fixed), LOGCXX-12 , 27- and -28.

            People

            • Assignee:
              Michaël CATANZARITI
              Reporter:
              Haohua Xie
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development