mcatan      2004/05/10 23:42:17

  Modified:    include/log4cxx appenderskeleton.h
               src      appenderskeleton.cpp
               .        ChangeLog
  Log:
  Appender threshold can now be configured through the PropertyConfigurator and 
the DOMConfigurator
  
  Revision  Changes    Path
  1.12      +1 -1      logging-log4cxx/include/log4cxx/appenderskeleton.h
  
  Index: appenderskeleton.h
  ===================================================================
  RCS file: /home/cvs/logging-log4cxx/include/log4cxx/appenderskeleton.h,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- appenderskeleton.h        24 Apr 2004 06:55:01 -0000      1.11
  +++ appenderskeleton.h        11 May 2004 06:42:17 -0000      1.12
  @@ -84,7 +84,7 @@
                requires it.
                */
                void activateOptions() {}
  -             void setOption(const String& name, const String& value) {}
  +             void setOption(const String& name, const String& value);
   
                /**
                Add a filter to end of the filter list.
  
  
  
  1.7       +10 -0     logging-log4cxx/src/appenderskeleton.cpp
  
  Index: appenderskeleton.cpp
  ===================================================================
  RCS file: /home/cvs/logging-log4cxx/src/appenderskeleton.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- appenderskeleton.cpp      22 Apr 2004 21:21:33 -0000      1.6
  +++ appenderskeleton.cpp      11 May 2004 06:42:17 -0000      1.7
  @@ -19,6 +19,7 @@
   #include <log4cxx/helpers/loglog.h>
   #include <log4cxx/helpers/onlyonceerrorhandler.h>
   #include <log4cxx/level.h>
  +#include <log4cxx/helpers/stringhelper.h>
   
   using namespace log4cxx;
   using namespace log4cxx::spi;
  @@ -120,4 +121,13 @@
   void AppenderSkeleton::setThreshold(const LevelPtr& threshold)
   {
        this->threshold = threshold;
  +}
  +
  +void AppenderSkeleton::setOption(const String& option,
  +     const String& value)
  +{
  +     if (StringHelper::equalsIgnoreCase(option, _T("threshold")))
  +     {
  +             setThreshold(Level::toLevel(value));
  +     }
   }
  
  
  
  1.31      +6 -0      logging-log4cxx/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /home/cvs/logging-log4cxx/ChangeLog,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- ChangeLog 10 May 2004 21:15:46 -0000      1.30
  +++ ChangeLog 11 May 2004 06:42:17 -0000      1.31
  @@ -1,3 +1,9 @@
  +CVS
  +===
  +
  +* Appender threshold can now be configured through the PropertyConfigurator 
and
  +  the DOMConfigurator.
  +
   Version 0.9.7 (2004-05-10)
   ==========================
   
  
  
  

Reply via email to