/** * Release any internal references to previously created {@link Log} instances returned by this * factory. This is useful in environments like servlet containers, which implement application * reloading by throwing away a ClassLoader. Dangling references to objects in that class loader * would prevent garbage collection. */ public void release() { DirectJDKLog.release(); }
/** * Construct (if necessary) and return a <code>Log</code> instance, using the factory's current * set of configuration attributes. * * <p><strong>NOTE</strong> - Depending upon the implementation of the <code>LogFactory</code> you * are using, the <code>Log</code> instance you are returned may or may not be local to the * current application, and may or may not be returned again on a subsequent call with the same * name argument. * * @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 Log getInstance(String name) throws LogConfigurationException { return DirectJDKLog.getInstance(name); }