logging-log4cxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject cvs commit: logging-log4cxx/include/log4cxx/rolling rolloverfailure.h sizebasedtriggeringpolicy.h
Date Fri, 07 Jan 2005 05:42:04 GMT
carnold     2005/01/06 21:42:04

  Modified:    .        build.xml
               include/log4cxx/rolling rolloverfailure.h
                        sizebasedtriggeringpolicy.h
  Log:
  LOGCXX-52: l4j 1.3 RollingFA migration, typos
  
  Revision  Changes    Path
  1.16      +1 -0      logging-log4cxx/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/logging-log4cxx/build.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- build.xml	4 Jan 2005 06:41:51 -0000	1.15
  +++ build.xml	7 Jan 2005 05:42:03 -0000	1.16
  @@ -219,6 +219,7 @@
                       <exclude name="**/gnomexml.h"/>
                       <exclude name="**/tchar.h"/>
                       <exclude name="**/config_msvc.h"/>
  +                    <exclude name="log4cxx/rollingfileappender.h"/>
                </fileset>
           </copy>
           <foreach target="make-header-check" param="header">
  
  
  
  1.2       +15 -15    logging-log4cxx/include/log4cxx/rolling/rolloverfailure.h
  
  Index: rolloverfailure.h
  ===================================================================
  RCS file: /home/cvs/logging-log4cxx/include/log4cxx/rolling/rolloverfailure.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rolloverfailure.h	7 Jan 2005 01:25:19 -0000	1.1
  +++ rolloverfailure.h	7 Jan 2005 05:42:04 -0000	1.2
  @@ -13,13 +13,13 @@
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
  -
  -#if !defined(_LOG4CXX_ROLLING_ROLLOVER_FAILURE_H)
  -#define _LOG4CXX_ROLLING_ROLLOVER_FAILURE_H
  -
  -#include <log4cxx/helpers/exception.h>
  -
  -namespace log4cxx {
  +
  +#if !defined(_LOG4CXX_ROLLING_ROLLOVER_FAILURE_H)
  +#define _LOG4CXX_ROLLING_ROLLOVER_FAILURE_H
  +
  +#include <log4cxx/helpers/exception.h>
  +
  +namespace log4cxx {
       namespace rolling {
   
           /**
  @@ -27,14 +27,14 @@
            *
            * @author Ceki Gulcu
            */
  -        class LOG4CXX_EXPORT RolloverFailure : public log4cxx::helpers::Exception {
  +        class LOG4CXX_EXPORT RolloverFailure : public log4cxx::helpers::Exception {
           public:
  -          RolloverFailure(const LogString& msg);
  +          RolloverFailure(const LogString& msg);
             RolloverFailure(const RolloverFailure& src);
  -          RolloverFailure& operator=(const RolloverFailure& src);
  -        };
  -    }
  +          RolloverFailure& operator=(const RolloverFailure& src);
  +        };
  +    }
   }
  -
  -
  -#endif
  \ No newline at end of file
  +
  +
  +#endif
  
  
  
  1.2       +25 -25    logging-log4cxx/include/log4cxx/rolling/sizebasedtriggeringpolicy.h
  
  Index: sizebasedtriggeringpolicy.h
  ===================================================================
  RCS file: /home/cvs/logging-log4cxx/include/log4cxx/rolling/sizebasedtriggeringpolicy.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sizebasedtriggeringpolicy.h	7 Jan 2005 01:25:19 -0000	1.1
  +++ sizebasedtriggeringpolicy.h	7 Jan 2005 05:42:04 -0000	1.2
  @@ -1,55 +1,55 @@
   /*
    * Copyright 1999,2005 The Apache Software Foundation.
  - * 
  + *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
  - * 
  + *
    *      http://www.apache.org/licenses/LICENSE-2.0
  - * 
  + *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
  -
  -#if !defined(_LOG4CXX_ROLLING_SIZE_BASED_TRIGGERING_POLICY_H)
  -#define _LOG4CXX_ROLLING_SIZE_BASED_TRIGGERING_POLICY_H
  -
  -#include <log4cxx/portability.h>
  -#include <log4cxx/rolling/triggeringpolicy.h>
  -
  -namespace log4cxx {
  -
  -    class File;
  -
  +
  +#if !defined(_LOG4CXX_ROLLING_SIZE_BASED_TRIGGERING_POLICY_H)
  +#define _LOG4CXX_ROLLING_SIZE_BASED_TRIGGERING_POLICY_H
  +
  +#include <log4cxx/portability.h>
  +#include <log4cxx/rolling/triggeringpolicy.h>
  +
  +namespace log4cxx {
  +
  +    class File;
  +
       namespace rolling {
   
           /**
            * SizeBasedTriggeringPolicy looks at size of the file being
            * currently written to.
  -         * 
  +         *
            * @author Ceki G&uuml;lc&uuml;
            *
            */
  -        class LOG4CXX_EXPORT SizeBasedTriggeringPolicy : public TriggeringPolicy {
  +        class LOG4CXX_EXPORT SizeBasedTriggeringPolicy : public TriggeringPolicy {
           protected:
             long maxFileSize;
  -
  +
           public:
               bool isTriggeringEvent(const log4cxx::File& file);
   
               size_t getMaxFileSize();
   
               void setMaxFileSize(size_t l);
  -  
  +
               void activateOptions();
  -        };
  -
  -        typedef log4cxx::helpers::ObjectPtrT<SizeBasedRollingPolicy> SizeBasedRollingPolicyPtr;
  -
  -    }
  -}
  -#endif
  +        };
  +
  +        typedef log4cxx::helpers::ObjectPtrT<SizeBasedTriggeringPolicy> SizeBasedTriggeringPolicyPtr;
  +
  +    }
  +}
  +#endif
   
  
  
  

Mime
View raw message