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 ca...@apache.org on 2007/08/23 21:39:56 UTC
svn commit: r569128 - in
/logging/log4j/trunk/src/main/java/org/apache/log4j/spi: NOPLogger.java
NOPLoggerRepository.java
Author: carnold
Date: Thu Aug 23 12:39:55 2007
New Revision: 569128
URL: http://svn.apache.org/viewvc?rev=569128&view=rev
Log:
Bug 40212: Switch to NOPLoggerRepository if application reloading nulls repository selector
Modified:
logging/log4j/trunk/src/main/java/org/apache/log4j/spi/NOPLogger.java
logging/log4j/trunk/src/main/java/org/apache/log4j/spi/NOPLoggerRepository.java
Modified: logging/log4j/trunk/src/main/java/org/apache/log4j/spi/NOPLogger.java
URL: http://svn.apache.org/viewvc/logging/log4j/trunk/src/main/java/org/apache/log4j/spi/NOPLogger.java?rev=569128&r1=569127&r2=569128&view=diff
==============================================================================
--- logging/log4j/trunk/src/main/java/org/apache/log4j/spi/NOPLogger.java (original)
+++ logging/log4j/trunk/src/main/java/org/apache/log4j/spi/NOPLogger.java Thu Aug 23 12:39:55 2007
@@ -1,24 +1,35 @@
+/*
+ * 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.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.apache.log4j.spi;
-import org.apache.log4j.Logger;
import org.apache.log4j.Appender;
import org.apache.log4j.Level;
-import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
import org.apache.log4j.Priority;
-import org.apache.log4j.Hierarchy;
-import org.apache.log4j.helpers.AppenderAttachableImpl;
-import org.apache.log4j.helpers.NullEnumeration;
import java.util.Enumeration;
import java.util.ResourceBundle;
-import java.util.MissingResourceException;
import java.util.Vector;
/**
* No-operation implementation of Logger used by NOPLoggerRepository.
* @since 1.2.15
*/
-public class NOPLogger extends Logger {
+public final class NOPLogger extends Logger {
/**
* Create instance of Logger.
* @param repo repository, may not be null.
Modified: logging/log4j/trunk/src/main/java/org/apache/log4j/spi/NOPLoggerRepository.java
URL: http://svn.apache.org/viewvc/logging/log4j/trunk/src/main/java/org/apache/log4j/spi/NOPLoggerRepository.java?rev=569128&r1=569127&r2=569128&view=diff
==============================================================================
--- logging/log4j/trunk/src/main/java/org/apache/log4j/spi/NOPLoggerRepository.java (original)
+++ logging/log4j/trunk/src/main/java/org/apache/log4j/spi/NOPLoggerRepository.java Thu Aug 23 12:39:55 2007
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.apache.log4j.spi;
import org.apache.log4j.Level;
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org