Modified: logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/spi/OptionHandler.java URL: http://svn.apache.org/viewcvs/logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/spi/OptionHandler.java?rev=370203&r1=370202&r2=370203&view=diff ============================================================================== --- logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/spi/OptionHandler.java (original) +++ logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/spi/OptionHandler.java Wed Jan 18 09:49:50 2006 @@ -1,3 +1,18 @@ +/* + * Copyright 2003-2006 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. + */ package org.apache.log4j.spi;
Modified: logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/spi/RootLogger.java URL: http://svn.apache.org/viewcvs/logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/spi/RootLogger.java?rev=370203&r1=370202&r2=370203&view=diff ============================================================================== --- logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/spi/RootLogger.java (original) +++ logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/spi/RootLogger.java Wed Jan 18 09:49:50 2006 @@ -1,60 +1,75 @@ - -package org.apache.log4j.spi; - -import org.apache.log4j.Logger; -import org.apache.log4j.Priority; -import org.apache.log4j.helpers.LogLog; - - -/** - RootLogger sits at the top of the Logger hierachy. It is a - regular Logger except that it provides several guarantees. - - <p>First, it cannot be assigned a <code>null</code> - priority. Second, since root Logger cannot have a parent, the - [EMAIL PROTECTED] #getChainedPriority} method always returns the value of the - priority field without walking the hierarchy. - - @author Ceki Gülcü - * @author <a href="mailto:[EMAIL PROTECTED]">Ralph Curtis</a> - - */ -final public class RootLogger extends Logger { - - /** - The root Logger names itself as "root". However, the root - Logger cannot be retrieved by name. - */ - public - RootLogger(Priority priority) { - super("root"); - setPriority(priority); - } - - - /** - Return the assigned priority value without walking the Logger - hierarchy. - */ - final - public - Priority getChainedPriority() { - return priority; - } - - /** - Setting a null value to the priority of the root Logger may have catastrophic - results. We prevent this here. - - @since 0.8.3 */ - final - public - void setPriority(Priority priority) { - if(priority == null) { - LogLog.error("null priority disallowed", new Throwable()); - } - else { - this.priority = priority; - } - } -} +/* + * Copyright 2003-2006 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. + */ + +package org.apache.log4j.spi; + +import org.apache.log4j.Logger; +import org.apache.log4j.Priority; +import org.apache.log4j.helpers.LogLog; + + +/** + RootLogger sits at the top of the Logger hierachy. It is a + regular Logger except that it provides several guarantees. + + <p>First, it cannot be assigned a <code>null</code> + priority. Second, since root Logger cannot have a parent, the + [EMAIL PROTECTED] #getChainedPriority} method always returns the value of the + priority field without walking the hierarchy. + + @author Ceki Gülcü + * @author <a href="mailto:[EMAIL PROTECTED]">Ralph Curtis</a> + + */ +final public class RootLogger extends Logger { + + /** + The root Logger names itself as "root". However, the root + Logger cannot be retrieved by name. + */ + public + RootLogger(Priority priority) { + super("root"); + setPriority(priority); + } + + + /** + Return the assigned priority value without walking the Logger + hierarchy. + */ + final + public + Priority getChainedPriority() { + return priority; + } + + /** + Setting a null value to the priority of the root Logger may have catastrophic + results. We prevent this here. + + @since 0.8.3 */ + final + public + void setPriority(Priority priority) { + if(priority == null) { + LogLog.error("null priority disallowed", new Throwable()); + } + else { + this.priority = priority; + } + } +} Modified: logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/ConfigurationFileParsing.java URL: http://svn.apache.org/viewcvs/logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/ConfigurationFileParsing.java?rev=370203&r1=370202&r2=370203&view=diff ============================================================================== --- logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/ConfigurationFileParsing.java (original) +++ logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/ConfigurationFileParsing.java Wed Jan 18 09:49:50 2006 @@ -1,9 +1,18 @@ /* - * Copyright (C) The Apache Software Foundation. All rights reserved. - * - * This software is published under the terms of the Apache Software - * License version 1.1, a copy of which has been included with this - * distribution in the LICENSE.txt file. */ + * Copyright 2003-2006 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. + */ package org.apache.log4j.test; Modified: logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Hello.java URL: http://svn.apache.org/viewcvs/logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Hello.java?rev=370203&r1=370202&r2=370203&view=diff ============================================================================== --- logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Hello.java (original) +++ logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Hello.java Wed Jan 18 09:49:50 2006 @@ -1,9 +1,18 @@ /* - * Copyright (C) The Apache Software Foundation. All rights reserved. - * - * This software is published under the terms of the Apache Software - * License version 1.1, a copy of which has been included with this - * distribution in the LICENSE.txt file. */ + * Copyright 2003-2006 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. + */ package org.apache.log4j.test; Modified: logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Min.java URL: http://svn.apache.org/viewcvs/logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Min.java?rev=370203&r1=370202&r2=370203&view=diff ============================================================================== --- logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Min.java (original) +++ logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Min.java Wed Jan 18 09:49:50 2006 @@ -1,3 +1,18 @@ +/* + * Copyright 2003-2006 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. + */ package org.apache.log4j.test; Modified: logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Shallow.java URL: http://svn.apache.org/viewcvs/logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Shallow.java?rev=370203&r1=370202&r2=370203&view=diff ============================================================================== --- logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Shallow.java (original) +++ logging/sandbox/log4j/log4jMini/trunk/src/java/org/apache/log4j/test/Shallow.java Wed Jan 18 09:49:50 2006 @@ -1,3 +1,18 @@ +/* + * Copyright 2003-2006 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. + */ package org.apache.log4j.test; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]