private void log(final Level level, final String message) { if (LogConfiguration.loggingIsEnabled()) { LOGGER.log(level, message); } } }
private void log(final Level level, final String message) { if (LogConfiguration.loggingIsEnabled()) { LOGGER.log(level, message); } } }
private void log(final Level level, final String message) { if (LogConfiguration.loggingIsEnabled()) { LOGGER.log(level, message); } } }
public static void log(final String message) { if (LogConfiguration.loggingIsEnabled()) { LOGGER.log(Level.INFO, message); } }
public static void log(final Level level, final String message) { if (LogConfiguration.loggingIsEnabled()) { LOGGER.log(level, message); } } }
protected void log(final Level level, final String message) { if (LogConfiguration.loggingIsEnabled()) { LOGGER.log(level, message); } }
private void log(final Level level, final String message) { if (LogConfiguration.loggingIsEnabled()) { LOGGER.log(level, message); } } }
@Override public void purge() { if (GWT.isClient() && LogConfiguration.loggingIsEnabled()) { Logger.getLogger(DefaultQueueableCacheStorage.class.getName()) .finer("remove " + cache.size() + " elements from cache."); } cache.clear(); }
private Logger getLogger() { if (GWT.isClient() && LogConfiguration.loggingIsEnabled() && logger == null) { logger = Logger.getLogger(Method.class.getName()); } return logger; }
private void doRemove(CacheKey key, String scope) { if (GWT.isClient() && LogConfiguration.loggingIsEnabled()) { Logger.getLogger(DefaultQueueableCacheStorage.class.getName()) .finer("removing cache-key " + key + " from scope \"" + scope + "\""); } HashMap<CacheKey, Response> scoped = cache.get(scope); if (null != scoped) { scoped.remove(key); } } }
private Logger getLogger() { if (GWT.isClient() && LogConfiguration.loggingIsEnabled() && logger == null) { logger = Logger.getLogger(AbstractAsyncCallback.class.getName()); } return logger; }
private Logger getLogger() { if (GWT.isClient() && LogConfiguration.loggingIsEnabled() && logger == null) { logger = Logger.getLogger(AbstractAsyncCallback.class.getName()); } return logger; }
private Logger getLogger() { if (GWT.isClient() && LogConfiguration.loggingIsEnabled() && logger == null) { logger = Logger.getLogger(AbstractRequestCallback.class.getName()); } return logger; }
@Override public void onResponseReceived(Request request, Response response) { if (GWT.isClient() && LogConfiguration.loggingIsEnabled()) { Logger.getLogger(CachingCallbackFilter.class.getName()) .finer("call " + removedCallbacks.size() + " more queued callbacks for " + ck); } // call all callbacks found in cache for (RequestCallback cb : removedCallbacks) { cb.onResponseReceived(request, response); } }
@Override public void purge() { super.purge(); if (LogConfiguration.loggingIsEnabled()) { Logger.getLogger(DefaultQueueableCacheStorage.class.getName()) .finer("remove " + timers.size() + " timers from list."); } for (Timer t : timers) { t.cancel(); } timers.clear(); }
/** * Called from native JavaScript when an old history state was popped. */ private void onPopState(final String historyToken) { if (LogConfiguration.loggingIsEnabled()) { LOG.fine("Popped '" + historyToken + "'"); } updateHistoryToken(historyToken); fireHistoryChangedImpl(token); }
@Override public void run() { try { method.builder.send(); } catch (RequestException ex) { if (GWT.isClient() && LogConfiguration.loggingIsEnabled()) { Logger.getLogger(RetryingFilterawareRequestCallback.class.getName()) .severe(ex.getMessage()); } } } };
protected void cacheResult(Method method, Response response) { CacheKey cacheKey = cacheKey(method.builder); if (GWT.isClient() && LogConfiguration.loggingIsEnabled()) { Logger.getLogger(CachingCallbackFilter.class.getName()).finer("cache to " + cacheKey + ": " + response); } cache.putResult(cacheKey, response, getCacheDomains(method)); }
protected void cacheResult(Method method, Response response) { CacheKey cacheKey = cacheKey(method.builder); if (GWT.isClient() && LogConfiguration.loggingIsEnabled()) { Logger.getLogger(CachingCallbackFilter.class.getName()).finer("cache to " + cacheKey + ": " + response); } cache.putResult(cacheKey, response, getCacheDomains(method)); }
@Override public Request send(Method method, RequestBuilder builder) throws RequestException { if (GWT.isClient() && LogConfiguration.loggingIsEnabled()) { Logger logger = Logger.getLogger(DefaultDispatcher.class.getName()); logger.fine("Sending http request: " + builder.getHTTPMethod() + " " + builder.getUrl() + " ,timeout:" + builder.getTimeoutMillis()); String content = builder.getRequestData(); if (content != null && !content.isEmpty()) { logger.fine(content); } } return builder.send(); }