1 17 package org.apache.ws.jaxme.logging; 18 19 import java.util.logging.Level ; 20 21 22 25 public class JavaUtilLogger implements Logger { 26 private final java.util.logging.Logger myLogger; 27 private final String cName; 28 29 public JavaUtilLogger(String pCName) { 30 cName = pCName; 31 myLogger = java.util.logging.Logger.getLogger(cName); 32 } 33 34 public void entering(String mName, Object [] pDetails) { 35 myLogger.entering(cName, mName, pDetails); 36 } 37 38 public void entering(String mName) { 39 myLogger.entering(cName, mName); 40 } 41 42 public void entering(String mName, Object pDetails) { 43 myLogger.entering(cName, mName, pDetails); 44 } 45 46 public void exiting(String mName, Object [] pDetails) { 47 myLogger.exiting(cName, mName, pDetails); 48 } 49 50 public void exiting(String mName) { 51 myLogger.exiting(cName, mName); 52 } 53 54 public void exiting(String mName, Object pDetails) { 55 myLogger.exiting(cName, mName, pDetails); 56 } 57 58 public void throwing(String mName, Throwable t) { 59 myLogger.throwing(cName, mName, t); 60 } 61 62 public void finest(String mName, String pMsg, Object [] pDetails) { 63 myLogger.logp(Level.FINEST, cName, mName, pMsg, pDetails); 64 } 65 66 public void finest(String mName, String pMsg) { 67 myLogger.logp(Level.FINEST, cName, mName, pMsg); 68 } 69 70 public void finest(String mName, String pMsg, Object pDetails) { 71 myLogger.logp(Level.FINEST, cName, mName, pMsg, pDetails); 72 } 73 74 public void finer(String mName, String pMsg, Object [] pDetails) { 75 myLogger.logp(Level.FINER, cName, mName, pMsg, pDetails); 76 } 77 78 public void finer(String mName, String pMsg) { 79 myLogger.logp(Level.FINER, cName, mName, pMsg); 80 } 81 82 public void finer(String mName, String pMsg, Object pDetails) { 83 myLogger.logp(Level.FINER, cName, mName, pMsg, pDetails); 84 } 85 86 public void fine(String mName, String pMsg, Object [] pDetails) { 87 myLogger.logp(Level.FINE, cName, mName, pMsg, pDetails); 88 } 89 90 public void fine(String mName, String pMsg) { 91 myLogger.logp(Level.FINE, cName, mName, pMsg); 92 } 93 94 public void fine(String mName, String pMsg, Object pDetails) { 95 myLogger.logp(Level.FINE, cName, mName, pMsg, pDetails); 96 } 97 98 public void info(String mName, String pMsg, Object [] pDetails) { 99 myLogger.logp(Level.INFO, cName, mName, pMsg, pDetails); 100 } 101 102 public void info(String mName, String pMsg) { 103 myLogger.logp(Level.INFO, cName, mName, pMsg); 104 } 105 106 public void info(String mName, String pMsg, Object pDetails) { 107 myLogger.logp(Level.INFO, cName, mName, pMsg, pDetails); 108 } 109 110 public void warn(String mName, String pMsg, Object [] pDetails) { 111 myLogger.logp(Level.WARNING, cName, mName, pMsg, pDetails); 112 } 113 114 public void warn(String mName, String pMsg) { 115 myLogger.logp(Level.WARNING, cName, mName, pMsg); 116 } 117 118 public void warn(String mName, String pMsg, Object pDetails) { 119 myLogger.logp(Level.WARNING, cName, mName, pMsg, pDetails); 120 } 121 122 public void error(String mName, String pMsg, Object [] pDetails) { 123 myLogger.logp(Level.SEVERE, cName, mName, pMsg, pDetails); 124 } 125 126 public void error(String mName, String pMsg) { 127 myLogger.logp(Level.SEVERE, cName, mName, pMsg); 128 } 129 130 public void error(String mName, String pMsg, Object pDetails) { 131 myLogger.logp(Level.SEVERE, cName, mName, pMsg, pDetails); 132 } 133 134 public boolean isFinestEnabled() { 135 return myLogger.isLoggable(Level.FINEST); 136 } 137 138 public boolean isFinerEnabled() { 139 return myLogger.isLoggable(Level.FINER); 140 } 141 142 public boolean isFineEnabled() { 143 return myLogger.isLoggable(Level.FINE); 144 } 145 146 public boolean isInfoEnabled() { 147 return myLogger.isLoggable(Level.INFO); 148 } 149 150 public boolean isWarnEnabled() { 151 return myLogger.isLoggable(Level.WARNING); 152 } 153 154 public boolean isErrorEnabled() { 155 return myLogger.isLoggable(Level.SEVERE); 156 } 157 } 158 | Popular Tags |