@@ -0,0 +1,1959 @@
+/*%0A * Copyright (C) 2010 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.sonatype.gshell.logging;%0A%0Aimport java.util.Collection;%0Aimport java.util.Collections;%0A%0A/**%0A * Provides generic access to the underlying logging system.%0A *%0A * @author %3Ca href=%22mailto:jason@planet57.com%22%3EJason Dillon%3C/a%3E%0A * @since 2.5%0A */%0Apublic class NopLoggingSystem%0A    implements LoggingSystem%0A%7B%0A    public Level getLevel(String name) %7B%0A        return new Level()%0A        %7B%0A            public String getName() %7B%0A                return null;%0A            %7D%0A        %7D;%0A    %7D%0A%0A    public Collection%3C? extends Level%3E getLevels() %7B%0A        return Collections.emptyList();%0A    %7D%0A%0A    public Logger getLogger(String name) %7B%0A        return new Logger()%0A        %7B%0A            public String getName() %7B%0A                return null;%0A            %7D%0A%0A            public Level getLevel() %7B%0A                return null;%0A            %7D%0A%0A            public void setLevel(Level level) %7B%0A            %7D%0A%0A            public void setLevel(String level) %7B%0A            %7D%0A%0A            public Logger parent() %7B%0A                return null;%0A            %7D%0A%0A            public boolean isRoot() %7B%0A                return false;%0A            %7D%0A        %7D;%0A    %7D%0A%0A    public Collection%3CString%3E getLoggerNames() %7B%0A        return Collections.emptyList();%0A    %7D%0A%0A    public Collection%3C? extends Component%3E getComponents() %7B%0A        return Collections.emptyList();%0A    %7D%0A%7D

Add crude nop logging system component