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

          Haohua Xie created issue -
          Haohua Xie made changes -
          Field Original Value New Value
          Summary Ap the threshold of ApenderSkeleton can not be set by calling setOption.
          Michaël CATANZARITI made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 0.9.8 [ 10782 ]
          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.
          Curt Arnold made changes -
          Link This issue is duplicated by LOGCXX-28 [ LOGCXX-28 ]
          Alan Cabrera made changes -
          Link This issue is duplicated by LOGCXX-28 [ LOGCXX-28 ]
          Alan Cabrera made changes -
          Link This issue is duplicated by LOGCXX-28 [ LOGCXX-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