You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by sd...@apache.org on 2008/06/06 18:53:30 UTC
svn commit: r664031 -
/logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rolling/CompositeTriggeringPolicy.java
Author: sdeboy
Date: Fri Jun 6 09:53:30 2008
New Revision: 664031
URL: http://svn.apache.org/viewvc?rev=664031&view=rev
Log:
Make 'addTriggeringPolicy' public, to support programmatic configuration of the CompositeTriggeringPolicy.
Also updated ASL header
Modified:
logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rolling/CompositeTriggeringPolicy.java
Modified: logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rolling/CompositeTriggeringPolicy.java
URL: http://svn.apache.org/viewvc/logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rolling/CompositeTriggeringPolicy.java?rev=664031&r1=664030&r2=664031&view=diff
==============================================================================
--- logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rolling/CompositeTriggeringPolicy.java (original)
+++ logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rolling/CompositeTriggeringPolicy.java Fri Jun 6 09:53:30 2008
@@ -1,12 +1,13 @@
/*
- * 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
- *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
@@ -51,7 +52,12 @@
return isTriggered;
}
- void addTriggeringPolicy(final TriggeringPolicy policy) {
+ /**
+ * Add triggering policy
+ *
+ * @param policy
+ */
+ public void addTriggeringPolicy(final TriggeringPolicy policy) {
triggeringPolicies.add(policy);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org