getLogger().debug("Could not locate file " + fileName + " at " + basePath + ": " + e.getMessage());
getLogger().debug(String.format("Could not determine URL for " + "basePath = %s, fileName = %s: %s", basePath, fileName, e));
/** * Evaluates the expression. * @param var The expression. * @return The String result of the expression. */ @Override public String lookup(final String var) { if (substitutor == null) { return var; } String result = substitutor.replace(var); try { final Expression exp = engine.createExpression(result); final Object exprResult = exp.evaluate(createContext()); result = (exprResult != null) ? String.valueOf(exprResult) : null; } catch (final Exception e) { final ConfigurationLogger l = getLogger(); if (l != null) { l.debug("Error encountered evaluating " + result + ": " + e); } } return result; }
this.getLogger().debug("Unable to load the configuration: " + e); throw new ConfigurationException("Unable to load the configuration", e);
/** * Returns the current configuration. This configuration was initialized at * the beginning of an operation and stored in a thread-local variable. Some * methods of this class call this method directly without requesting a lock * before. To deal with this, we always request an additional read lock. * * @return the current configuration */ private CombinedConfiguration getCurrentConfig() { CombinedConfiguration config; String key; beginRead(false); try { config = CURRENT_CONFIG.get().getCurrentConfiguration(); key = CURRENT_CONFIG.get().getKey(); } finally { endRead(); } if (getLogger().isDebugEnabled()) { getLogger().debug("Returning config for " + key + ": " + config); } return config; }
.debug("Adding configuration " + config + " with name " + name);