[prev in list] [next in list] [prev in thread] [next in thread]
List: log4cxx-dev
Subject: cvs commit: logging-log4cxx/include/log4cxx/rolling rolloverfailure.h sizebasedtriggeringpolicy.h
From: carnold () apache ! org
Date: 2005-01-07 5:42:04
Message-ID: 20050107054204.54798.qmail () minotaur ! apache ! org
[Download RAW message or body]
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ülcü
*
*/
- 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic