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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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
          carnold@apache.org Curt Arnold added a comment -

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

          Show
          carnold@apache.org Curt Arnold added a comment - This bug has triplicated (but fixed), LOGCXX-12 , 27- and -28.
          Hide
          goldfrog 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
          goldfrog 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)); } }

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development