1 24 25 package org.slf4j.helpers; 26 27 import org.slf4j.Logger; 28 import org.slf4j.Marker; 29 30 31 39 public abstract class MarkerIgnoringBase implements Logger { 40 41 public boolean isTraceEnabled(Marker marker) { 42 return isTraceEnabled(); 43 } 44 45 public void trace(Marker marker, String msg) { 46 debug(msg); 47 } 48 49 public void trace(Marker marker, String format, Object arg) { 50 debug(format, arg); 51 } 52 53 public void trace(Marker marker, String format, Object arg1, Object arg2) { 54 debug(format, arg1, arg2); 55 } 56 57 public void trace(Marker marker, String format, Object [] argArray) { 58 debug(format, argArray); 59 } 60 61 public void trace(Marker marker, String msg, Throwable t) { 62 debug(msg, t); 63 } 64 65 public boolean isDebugEnabled(Marker marker) { 66 return isDebugEnabled(); 67 } 68 69 public void debug(Marker marker, String msg) { 70 debug(msg); 71 } 72 73 public void debug(Marker marker, String format, Object arg) { 74 debug(format, arg); 75 } 76 77 public void debug(Marker marker, String format, Object arg1, Object arg2) { 78 debug(format, arg1, arg2); 79 } 80 81 public void debug(Marker marker, String format, Object [] argArray) { 82 debug(format, argArray); 83 } 84 85 public void debug(Marker marker, String msg, Throwable t) { 86 debug(msg, t); 87 } 88 89 public boolean isInfoEnabled(Marker marker) { 90 return isInfoEnabled(); 91 } 92 93 public void info(Marker marker, String msg) { 94 info(msg); 95 } 96 97 public void info(Marker marker, String format, Object arg) { 98 info(format, arg); 99 } 100 101 public void info(Marker marker, String format, Object arg1, Object arg2) { 102 info(format, arg1, arg2); 103 } 104 105 public void info(Marker marker, String format, Object [] argArray) { 106 info(format, argArray); 107 } 108 109 public void info(Marker marker, String msg, Throwable t) { 110 info(msg, t); 111 } 112 113 public boolean isWarnEnabled(Marker marker) { 114 return isWarnEnabled(); 115 } 116 117 public void warn(Marker marker, String msg) { 118 warn(msg); 119 } 120 121 public void warn(Marker marker, String format, Object arg) { 122 warn(format, arg); 123 } 124 125 public void warn(Marker marker, String format, Object arg1, Object arg2) { 126 warn(format, arg1, arg2); 127 } 128 129 public void warn(Marker marker, String format, Object [] argArray) { 130 warn(format, argArray); 131 } 132 133 public void warn(Marker marker, String msg, Throwable t) { 134 warn(msg, t); 135 } 136 137 138 public boolean isErrorEnabled(Marker marker) { 139 return isErrorEnabled(); 140 } 141 142 public void error(Marker marker, String msg) { 143 error(msg); 144 } 145 146 public void error(Marker marker, String format, Object arg) { 147 error(format, arg); 148 } 149 150 public void error(Marker marker, String format, Object arg1, Object arg2) { 151 error(format, arg1, arg2); 152 } 153 154 public void error(Marker marker, String format, Object [] argArray) { 155 error(format, argArray); 156 } 157 158 public void error(Marker marker, String msg, Throwable t) { 159 error(msg, t); 160 } 161 162 public String toString() { 163 return this.getClass().getName()+"("+getName()+")"; 164 } 165 } 166 | Popular Tags |