public static Logger logger(String loggerName) { return Logger.getLogger( loggerName ); } }
public static Logger logger(String loggerName) { return Logger.getLogger( loggerName ); } }
public static Logger logger(String loggerName) { return Logger.getLogger( loggerName ); } }
public static Logger logger(Class classNeedingLogging) { return Logger.getLogger( classNeedingLogging ); }
public static Logger logger(Class classNeedingLogging) { return Logger.getLogger( classNeedingLogging ); }
public static Logger logger(Class classNeedingLogging) { return Logger.getLogger( classNeedingLogging ); }
/** * Construct a <t>ServiceMBeanSupport</tt>. * * <p> * Sets up logging. * * @param category The logger category name. */ public ServiceMBeanSupport(final String category) { this(Logger.getLogger(category)); }
public JbossLog(Class<?> clazz) { this(Logger.getLogger(clazz)); }
public JbossLog(String name) { this(Logger.getLogger(name)); }
public JbossLog(String name) { this(Logger.getLogger(name)); }
protected Object readResolve() { return Logger.getLogger(name); } }
public JbossLog(Class<?> clazz) { this(Logger.getLogger(clazz)); }
/** * Get a Logger instance given the name of a class. This simply calls create(clazz.getName()). * * @param clazz the Class whose name will be used as the logger name * * @return the logger */ public static Logger getLogger(Class<?> clazz) { return getLogger(clazz.getName()); }
/** * Get a Logger instance given the logger name with the given suffix. * <p/> * <p>This will include a logger separator between logger name and suffix. * * @param name the logger name * @param suffix a suffix to append to the logger name * * @return the logger */ public static Logger getLogger(String name, String suffix) { return getLogger(name == null || name.length() == 0 ? suffix : name + "." + suffix); }
/** * Get a Logger instance given the name of a class with the given suffix. * <p/> * <p>This will include a logger separator between logger name and suffix * * @param clazz the Class whose name will be used as the logger name * @param suffix a suffix to append to the logger name * * @return the logger */ public static Logger getLogger(Class<?> clazz, String suffix) { return getLogger(clazz.getName(), suffix); }
private Logger getLoggerForCategory(String category) { Logger logger = loggers.get(category); if (logger == null) { logger = Logger.getLogger(ORG_ECLIPSE_PERSISTENCE, (category == null ? "" : category)); loggers.put(category, logger); } return logger; }
/** * Construct a <t>ServiceMBeanSupport</tt>. * * <p> * Sets up logging. */ public ServiceMBeanSupport() { // can not call this(Class) because we need to call getClass() this.log = Logger.getLogger(getClass().getName()); log.trace("Constructing"); }
/** * Get an uncaught exception handler which logs to the given logger. * * @param categoryName the name of the logger category to log to * @return the handler */ public static Thread.UncaughtExceptionHandler loggingExceptionHandler(final String categoryName) { return new LoggingUncaughtExceptionHandler(Logger.getLogger(categoryName)); }
@Override public Log getLog(String category) { return new LogAdapter(Logger.getLogger(category)); }
@Override public Log getLog(Class<?> clazz) { return new LogAdapter(Logger.getLogger(clazz)); }