本文整理了Java中freemarker.log.Logger.isInfoEnabled()
方法的一些代码示例,展示了Logger.isInfoEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isInfoEnabled()
方法的具体详情如下:
包路径:freemarker.log.Logger
类名称:Logger
方法名:isInfoEnabled
[英]Returns true if this logger will log informational messages.
[中]如果此记录器将记录信息性消息,则返回true。
代码示例来源:origin: org.freemarker/freemarker
private void onSameNameClassesDetected(String className) {
// TODO: This behavior should be pluggable, as in environments where
// some classes are often reloaded or multiple versions of the
// same class is normal (OSGi), this will drop the cache contents
// too often.
if (LOG.isInfoEnabled()) {
LOG.info(
"Detected multiple classes with the same name, \"" + className +
"\". Assuming it was a class-reloading. Clearing class introspection " +
"caches to release old data.");
}
forcedClearCache();
}
代码示例来源:origin: org.freemarker/freemarker
} else {
if (obj != null) {
if (LOG.isInfoEnabled()) {
LOG.info("Overwriting value [" + obj + "] for " +
" key '" + name + "' with [" + method +
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
private void onSameNameClassesDetected(String className) {
// TODO: This behavior should be pluggable, as in environments where
// some classes are often reloaded or multiple versions of the
// same class is normal (OSGi), this will drop the cache contents
// too often.
if (LOG.isInfoEnabled()) {
LOG.info(
"Detected multiple classes with the same name, \"" + className +
"\". Assuming it was a class-reloading. Clearing class introspection " +
"caches to release old data.");
}
forcedClearCache();
}
代码示例来源:origin: org.freemarker/freemarker-gae
private void onSameNameClassesDetected(String className) {
// TODO: This behavior should be pluggable, as in environments where
// some classes are often reloaded or multiple versions of the
// same class is normal (OSGi), this will drop the cache contents
// too often.
if (LOG.isInfoEnabled()) {
LOG.info(
"Detected multiple classes with the same name, \"" + className +
"\". Assuming it was a class-reloading. Clearing class introspection " +
"caches to release old data.");
}
forcedClearCache();
}
代码示例来源:origin: org.freemarker/com.springsource.freemarker
private void introspectClassInternal(Class clazz)
{
String className = clazz.getName();
if(cachedClassNames.contains(className))
{
if(logger.isInfoEnabled())
{
logger.info("Detected a reloaded class [" + className +
"]. Clearing BeansWrapper caches.");
}
// Class reload detected, throw away caches
classCache.clear();
cachedClassNames = new HashSet();
synchronized(this)
{
modelCache.clearCache();
}
staticModels.clearCache();
if(enumModels != null) {
enumModels.clearCache();
}
}
classCache.put(clazz, populateClassMap(clazz));
cachedClassNames.add(className);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
} else {
if (obj != null) {
if (LOG.isInfoEnabled()) {
LOG.info("Overwriting value [" + obj + "] for " +
" key '" + name + "' with [" + method +
代码示例来源:origin: org.freemarker/freemarker-gae
} else {
if (obj != null) {
if (LOG.isInfoEnabled()) {
LOG.info("Overwriting value [" + obj + "] for " +
" key '" + name + "' with [" + method +
内容来源于网络,如有侵权,请联系作者删除!