@Override public void initialize(final String cat) { this.log = _creator.getInstance(cat); }
/** * Convenience method to return a named logger, without the application * having to care about factories. * * @param clazz Class from which a log name will be derived * @throws LogConfigurationException if a suitable <code>Log</code> * instance cannot be returned */ public static Log getLog(Class clazz) throws LogConfigurationException { return getFactory().getInstance(clazz); }
/** * Convenience method to return a named logger, without the application * having to care about factories. * * @param name Logical name of the <code>Log</code> instance to be * returned (the meaning of this name is only known to the underlying * logging implementation that is being wrapped) * @throws LogConfigurationException if a suitable <code>Log</code> * instance cannot be returned */ public static Log getLog(String name) throws LogConfigurationException { return getFactory().getInstance(name); }
/** * Convenience method to return a named logger, without the application having * to care about factories. * * @param clazz * Class from which a log name will be derived * * @exception LogConfigurationException * if a suitable <code>Log</code> instance cannot be * returned */ public static Log getLog(Class clazz) throws LogConfigurationException { return (getFactory().getInstance(clazz)); }
/** * Convenience method to return a named logger, without the application having * to care about factories. * * @param name * Logical name of the <code>Log</code> instance to be * returned (the meaning of this name is only known to the * underlying logging implementation that is being wrapped) * * @exception LogConfigurationException * if a suitable <code>Log</code> instance cannot be * returned */ public static Log getLog(String name) throws LogConfigurationException { return (getFactory().getInstance(name)); }
/** * Convenience method to return a named logger, without the application having * to care about factories. * * @param clazz * Class from which a log name will be derived * * @exception LogConfigurationException * if a suitable <code>Log</code> instance cannot be * returned */ public static Log getLog(Class clazz) throws LogConfigurationException { return (getFactory().getInstance(clazz)); }
/** * Convenience method to return a named logger, without the application having * to care about factories. * * @param name * Logical name of the <code>Log</code> instance to be * returned (the meaning of this name is only known to the * underlying logging implementation that is being wrapped) * * @exception LogConfigurationException * if a suitable <code>Log</code> instance cannot be * returned */ public static Log getLog(String name) throws LogConfigurationException { return (getFactory().getInstance(name)); }
/** * Convenience method to return a named logger, without the application * having to care about factories. * * @param clazz Class from which a log name will be derived * * @exception LogConfigurationException if a suitable <code>Log</code> * instance cannot be returned */ public static Log getLog(Class clazz) throws LogConfigurationException { return (getFactory().getInstance(clazz)); }
/** * Convenience method to return a named logger, without the application * having to care about factories. * * @param name Logical name of the <code>Log</code> instance to be * returned (the meaning of this name is only known to the underlying * logging implementation that is being wrapped) * * @exception LogConfigurationException if a suitable <code>Log</code> * instance cannot be returned */ public static Log getLog(String name) throws LogConfigurationException { return (getFactory().getInstance(name)); }
public void initialize(final String cat) { this.log = _creator.getInstance(cat); }
/** * Convenience method to return a named logger, without the application having * to care about factories. * * @param clazz Class from which a log name will be derived * @throws LogConfigurationException if a suitable <code>Log</code> instance cannot be * returned */ public static Log getLog(Class clazz) throws LogConfigurationException { return (getFactory().getInstance(clazz)); }
/** * Convenience method to return a named logger, without the application * having to care about factories. * * @param clazz Class from which a log name will be derived * @throws LogConfigurationException if a suitable <code>Log</code> * instance cannot be returned */ public static Log getLog(Class clazz) throws LogConfigurationException { return getFactory().getInstance(clazz); }
@Override public Log getLog(String s) { return new CommonsLogger(cl.getInstance(s)); } };
/** * This method MUST not invoke any logging.. * * @param clazz The class the log has to be created for * @return The input class logger */ public static Log _newLog(Class<?> clazz) { classRegistry.put(clazz, clazz); return (logFactory == null) ? new SimpleLog(clazz.getName()) : logFactory.getInstance(clazz.getName()); }
/** * Convenience method to return a named logger, without the application * having to care about factories. * * @param clazz Class from which a log name will be derived * @throws LogConfigurationException if a suitable <code>Log</code> * instance cannot be returned */ public static Log getLog(Class clazz) throws LogConfigurationException { return getFactory().getInstance(clazz); }
/** * Make sure that the logger is there. */ private static synchronized void ensureLogger() { if ( log == null ){ logFactory = LogFactory.getFactory(); log = logFactory.getInstance(JSONConfigDefaults.class); } }
/** * Convenience method to return a named logger, without the application * having to care about factories. * * @param clazz Class from which a log name will be derived * @throws LogConfigurationException if a suitable <code>Log</code> * instance cannot be returned */ public static Log getLog(Class clazz) throws LogConfigurationException { return getFactory().getInstance(clazz); }
@Override public Log getLog(String s) { return new CommonsLogger(cl.getInstance(s)); } };
/** * Convenience method to return a named logger, without the application * having to care about factories. * * @param clazz Class from which a log name will be derived * * @throws LogConfigurationException if a suitable <code>Log</code> * instance cannot be returned */ public static Log getLog(Class clazz) throws LogConfigurationException { return getFactory().getInstance(clazz); }
public void setLogFactory(LogFactory logFactory) { // change the log factory GeronimoLogFactory.logFactory = logFactory; // update all known logs to use instances of the new factory Set logs = getInstances(); for (Iterator iterator = logs.iterator(); iterator.hasNext();) { GeronimoLog log = (GeronimoLog) iterator.next(); log.setLog(logFactory.getInstance(log.getName())); } }