protected void log(final Level level, final Throwable ex, final String message, final StackTraceElement[] locations) { final StackTraceElement caller = extract(locations, EXCLUDE_LIST); if (null != caller) { logImpl.log(clazz, caller, level, message, ex); } else { logImpl.log(clazz, (String)null, level, message, ex); } }
private synchronized static Log getLog() { if (log == null) { log = Log.getLog(Main.class); } return log; } }
public static boolean isLoggable() { return LOG.isLoggable(LOG_LEVEL); } }
/** * Determine if its log-able at this level within this class. */ public boolean isLoggable(final Level level) { return logImpl.isLoggable(clazz, level); }
/** * Cache the search for the SPI class. */ static Class<?> getSpiClass() { // initialize the SPI class cache object synchronized (Log.class) { if (_cacheSpi == null) { _cacheSpi = findSpiClass(); } } return _cacheSpi; }
/** * Used for testing.. */ static Log getLog(final Class<?> clazz, LogSpi logImpl) { return new Log(clazz, logImpl); }
protected void log(final Level level, final Throwable ex, final String message, final StackTraceElement[] locations) { final StackTraceElement caller = extract(locations, EXCLUDE_LIST); if (null != caller) { logImpl.log(clazz, caller, level, message, ex); } else { logImpl.log(clazz, (String)null, level, message, ex); } }
private synchronized static Log getLog() { if (log == null) { log = Log.getLog(Main.class); } return log; } }
/** * Determine if its log-able at this level within this class. */ public boolean isLoggable(final Level level) { return _logImpl.isLoggable(_clazz, level); }
/** * Cache the search for the SPI class. */ static Class<?> getSpiClass() { // initialize the SPI class cache object synchronized (Log.class) { if (cacheSPI == null) { cacheSPI = findSpiClass(); } } return cacheSPI; }
/** * Used for testing.. */ static Log getLog(final Class<?> clazz, final LogSpi logImpl) { return new Log(clazz, logImpl); }
private synchronized static Log getLog() { if (_log == null) { _log = Log.getLog(Main.class); } return _log; } }
/** * Determine if its log-able at this level within this class. */ public boolean isLoggable(final Level level) { return logImpl.isLoggable(clazz, level); }
/** * Cache the search for the SPI class. */ static Class<?> getSpiClass() { // initialize the SPI class cache object synchronized (Log.class) { if (cacheSPI == null) { cacheSPI = findSpiClass(); } } return cacheSPI; }
/** * prints log message when skipping * {@link AttributeTests#testNonUpdateable()} test * * @param testName the name of the test to print */ private void printSkipTestMsg(String testName, ObjectClass objectClass) { LOG.info(LOG_SEPARATOR); LOG.info("Skipping test ''" + testName + "'' for object class ''" + objectClass + "''. " + "(Reason: non-updateable attrs. are missing)"); LOG.info(LOG_SEPARATOR); }