1 package org.apache.ojb.broker.util.logging; 2 3 17 18 import org.apache.ojb.broker.util.configuration.Configurable; 19 import org.apache.ojb.broker.util.configuration.Configuration; 20 import org.apache.ojb.broker.util.configuration.ConfigurationException; 21 22 import java.io.Serializable ; 23 24 25 31 public interface Logger extends Serializable , Configurable 32 { 33 static final long serialVersionUID = 1177329037874407180L; 36 public final static int DEBUG = 1; 37 public final static int INFO = 2; 38 public final static int WARN = 3; 39 public final static int ERROR = 4; 40 public final static int FATAL = 5; 41 42 43 47 public void debug(Object pObject); 48 49 53 public void info(Object pObject); 54 55 59 public void warn(Object pObject); 60 61 65 public void error(Object pObject); 66 67 71 public void fatal(Object pObject); 72 73 public void debug(Object message, Throwable obj); 74 public void info(Object message, Throwable obj); 75 public void warn(Object message, Throwable obj); 76 public void error(Object message, Throwable obj); 77 public void fatal(Object message, Throwable obj); 78 79 public boolean isEnabledFor(int priority); 80 public boolean isDebugEnabled(); 81 82 85 public String getName(); 86 87 94 public void safeDebug(String message, Object obj); 95 96 103 public void safeDebug(String message, Object obj, Throwable t); 104 105 112 public void safeInfo(String message, Object obj); 113 114 121 public void safeInfo(String message, Object obj, Throwable t); 122 123 130 public void safeWarn(String message, Object obj); 131 132 139 public void safeWarn(String message, Object obj, Throwable t); 140 141 148 public void safeError(String message, Object obj); 149 150 157 public void safeError(String message, Object obj, Throwable t); 158 159 166 public void safeFatal(String message, Object obj); 167 168 175 public void safeFatal(String message, Object obj, Throwable t); 176 177 184 void configure(Configuration config) throws ConfigurationException; 185 } 186 | Popular Tags |