1 package org.apache.maven.plugin.surefire.log.api; 2 3 /* 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 */ 21 22 /** 23 * Logger doing nothing rather than using null. 24 * 25 * @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a> 26 * @since 2.20 27 */ 28 public final class NullConsoleLogger implements ConsoleLogger 29 { 30 @Override 31 public boolean isDebugEnabled() 32 { 33 return false; 34 } 35 36 @Override 37 public void debug( String message ) 38 { 39 } 40 41 @Override 42 public boolean isInfoEnabled() 43 { 44 return false; 45 } 46 47 @Override 48 public void info( String message ) 49 { 50 } 51 52 @Override 53 public boolean isWarnEnabled() 54 { 55 return false; 56 } 57 58 @Override 59 public void warning( String message ) 60 { 61 } 62 63 @Override 64 public boolean isErrorEnabled() 65 { 66 return false; 67 } 68 69 @Override 70 public void error( String message ) 71 { 72 } 73 74 @Override 75 public void error( String message, Throwable t ) 76 { 77 } 78 79 @Override 80 public void error( Throwable t ) 81 { 82 } 83 }