1 /* 2 ~ Copyright 2006-2007 Nicolas De Loof. 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 */ 16 package org.jmonit.log; 17 18 /** 19 * Logger used when no supporter logging API is available at runtime. 20 * 21 * @author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a> 22 */ 23 public class NullLogger 24 extends Log 25 { 26 27 /** 28 * {@inheritDoc} 29 * 30 * @see info.jmonit.logger.Log#isDebugEnabled() 31 */ 32 public boolean isDebugEnabled() 33 { 34 return false; 35 } 36 37 /** 38 * {@inheritDoc} 39 * 40 * @see info.jmonit.logger.Log#debug(java.lang.String) 41 */ 42 public void debug( String message ) 43 { 44 // Nop 45 } 46 47 /** 48 * {@inheritDoc} 49 * 50 * @see info.jmonit.logger.Log#error(java.lang.String) 51 */ 52 public void error( String message ) 53 { 54 // Nop 55 } 56 57 /** 58 * {@inheritDoc} 59 * 60 * @see info.jmonit.logger.Log#error(java.lang.String, Throwable) 61 */ 62 public void error( String message, Throwable t ) 63 { 64 // Nop 65 } 66 67 /** 68 * {@inheritDoc} 69 * 70 * @see info.jmonit.logger.Log#info(java.lang.String) 71 */ 72 public void info( String message ) 73 { 74 // Nop 75 } 76 77 /** 78 * {@inheritDoc} 79 * 80 * @see info.jmonit.logger.Log#info(java.lang.String, Throwable) 81 */ 82 public void info( String message, Throwable t ) 83 { 84 // Nop 85 } 86 87 /** 88 * {@inheritDoc} 89 * 90 * @see info.jmonit.logger.Log#warn(java.lang.String) 91 */ 92 public void warn( String message ) 93 { 94 // Nop 95 } 96 97 /** 98 * {@inheritDoc} 99 * 100 * @see info.jmonit.logger.Log#warn(java.lang.String, Throwable) 101 */ 102 public void warn( String message, Throwable t ) 103 { 104 // Nop 105 } 106 }