private static JDKLoggerProvider tryJDK(final String via) { final JDKLoggerProvider provider = new JDKLoggerProvider(); logProvider(provider, via); return provider; }
/** * Get a typed logger which implements the given interface. The current default locale will be used for the new logger. * * @param type the interface to implement * @param category the logger category * @param <T> the logger type * @return the typed logger */ public static <T> T getMessageLogger(Class<T> type, String category) { return getMessageLogger(type, category, LoggingLocale.getLocale()); }
@Override public final Boolean isUnsaved(Object id) { LOG.trace( "ID unsaved-value strategy ANY" ); return Boolean.TRUE; }
@Override public void checkPermission(PermissionCheckEntityInformation entityInformation, PermissibleAction action) { log.debug( "Ignoring call to checkPermission on disabled JACC service" ); } }
@Override public boolean isReadable(long txTimestamp) { if ( DEBUG_ENABLED ) { log.debugf( "Checking readability of read-write cache item [timestamp=`%s`, version=`%s`] : txTimestamp=`%s`", (Object) timestamp, version, txTimestamp ); } return txTimestamp > timestamp; }
/** * Used by SettingsFactory (in conjunction with stats being enabled) to determine whether to apply this listener * * @return {@code true} if logging is enabled for this listener. */ public static boolean isLoggingEnabled() { return log.isInfoEnabled(); }
private static LoggerProvider trySlf4j(final String via) { final LoggerProvider provider = new Slf4jLoggerProvider(); logProvider(provider, via); return provider; }
/** * Get a message bundle of the given type. Equivalent to <code>{@link #getBundle(Class, java.util.Locale) getBundle}(type, Locale.getDefault())</code>. * * @param type the bundle type class * @param <T> the bundle type * @return the bundle */ public static <T> T getBundle(Class<T> type) { return getBundle(type, LoggingLocale.getLocale()); }
@Override public void afterTransactionBegin() { log.debug( "#afterTransactionBegin called" ); beginCount++; }
@Override public final Boolean isUnsaved(Object id) { LOG.trace( "ID unsaved-value strategy NULL" ); return id == null; }
@Override public void afterTransactionCompletion(boolean successful, boolean delayed) { log.debug( "#afterTransactionCompletion called" ); if ( successful ) { successfulCompletionCount++; } else { failedCompletionCount++; } }
@Override public final Boolean isUnsaved(Object version) { LOG.trace( "Version unsaved-value strategy UNDEFINED" ); return version == null ? Boolean.TRUE : null; }
@Override public void beforeTransactionCompletion() { log.debug( "#beforeTransactionCompletion called" ); beforeCompletionCount++; }
@Override public final Boolean isUnsaved(Object version) { LOG.trace( "Version unsaved-value strategy NULL" ); return version == null; }
protected String applyPrefix(String baseTableName) { String prefixed = prefix + '_' + baseTableName; log.debug("prefixed table name : " + baseTableName + " -> " + prefixed); return prefixed; }
@Override public final Boolean isUnsaved(Object id) { LOG.trace( "ID unsaved-value strategy NONE" ); return Boolean.FALSE; }
@Override public void afterTransactionBegin() { log.debug( "#afterTransactionBegin called" ); beginCount++; }
@Override public final Boolean isUnsaved(Object id) { LOG.trace( "ID unsaved-value strategy UNDEFINED" ); return null; }
@Override public void beforeTransactionCompletion() { log.debug( "#beforeTransactionCompletion called" ); beforeCompletionCount++; }
@Override public boolean isUpToDate( String[] spaces, Long timestamp, SharedSessionContractImplementor session) { log.trace( "TimestampsRegionAccess#isUpToDate - disabled" ); return false; } }