1 25 26 package org.objectweb.jonas_jms; 27 28 import org.objectweb.util.monolog.api.Logger; 29 import org.objectweb.util.monolog.api.LoggerFactory; 30 import org.objectweb.util.monolog.api.BasicLevel; 31 import org.objectweb.util.monolog.wrapper.printwriter.LoggerImpl; 32 33 class DummyLogger extends LoggerImpl { 34 35 38 39 public void log(int level, java.lang.Object o) { 40 } 41 } 42 43 44 48 public class TraceJms { 49 50 static public Logger logger = new DummyLogger(); 51 static public LoggerFactory loggerfactory = null; 52 53 static public void configure(LoggerFactory lf) { 54 loggerfactory = lf; 55 logger = lf.getLogger("org.objectweb.jonas_jms"); 56 } 57 58 static public boolean isDebug() { 59 return (logger != null) && logger.isLoggable(BasicLevel.DEBUG); 60 } 61 static public LoggerFactory getLoggerFactory() { 62 return loggerfactory; 63 } 64 65 } 66 | Popular Tags |