1 26 package org.objectweb.util.explorer.core.common.lib; 27 28 import org.objectweb.util.monolog.api.Loggable; 29 import org.objectweb.util.monolog.api.Logger; 30 import org.objectweb.util.monolog.api.LoggerFactory; 31 import org.objectweb.util.trace.TraceTemplate; 32 33 40 public class BasicLoggable 41 implements Loggable 42 { 43 44 50 51 protected TraceTemplate trace; 52 53 54 protected LoggerFactory factory; 55 56 62 68 74 77 protected TraceTemplate getTrace() { 78 return trace; 79 } 80 81 84 protected void setTrace(TraceTemplate trace) { 85 this.trace = trace; 86 } 87 88 91 public Logger getLogger() { 92 return getTrace().getLogger(); 93 } 94 95 98 public void setLogger(Logger log) { 99 setTrace(new TraceTemplate(log)); 100 } 101 102 105 public LoggerFactory getLoggerFactory() { 106 return this.factory; 107 } 108 109 112 public void setLoggerFactory(LoggerFactory loggerFactory) { 113 this.factory = loggerFactory; 114 } 115 116 } 117 | Popular Tags |