This commit contains only a method deletion.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r27875:27876 http://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/util/logging/Logging.java
Revision 27875 | Revision 27876 |
---|---|
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.LogRecord;
import java.lang.reflect.Method;
import org.geotools.resources.XArray;
import org.geotools.resources.Utilities; |
import java.util.logging.Level; import java.util.logging.Logger; import java.util.logging.LogRecord; import org.geotools.resources.XArray; import org.geotools.resources.Utilities; |
} /** * Sets a pre-defined logger factory for {@linkplain java.util.logging Java logging}, * <A HREF="http://jakarta.apache.org/commons/logging/">commons-logging</A> or * <A HREF="http://logging.apache.org/log4j/">Log4J</A> framework. This method does nothing * if the specified framework is not {@linkplain LoggingFramework#isAvailable available}. * * @param framework The framework to set. * @return {@code true} if the framework has been set, or {@code false} otherwise. * * @see org.geotools.factory.GeoTools#init */ public boolean setLoggingFramework(final LoggingFramework framework) { if (framework.isAvailable()) { Throwable error; try { final LoggerFactory factory; if (framework.factoryClassName == null) { factory = null; } else { final Class<?> classe = Class.forName(framework.factoryClassName); final Method method = classe.getMethod("getInstance", (Class[]) null); factory = (LoggerFactory) method.invoke(null, (Object[]) null); } setLoggerFactory(factory); return true; } catch (NoClassDefFoundError e) { error = e; } catch (Exception e) { // Catching all exceptions is not a good practice, but // there is really a lot of them when using reflection. error = e; } Utilities.recoverableException("org.geotools.logging.util", Logging.class, "setLoggingFramework", error); } return false; } /** * Configures the default {@linkplain java.util.logging.ConsoleHandler console handler} in * order to log records on a single line instead of two lines. More specifically, for each * {@link java.util.logging.ConsoleHandler} using a {@link java.util.logging.SimpleFormatter}, |
} /** * Configures the default {@linkplain java.util.logging.ConsoleHandler console handler} in * order to log records on a single line instead of two lines. More specifically, for each * {@link java.util.logging.ConsoleHandler} using a {@link java.util.logging.SimpleFormatter}, |