freemarker.log.Logger.isInfoEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(337)

本文整理了Java中freemarker.log.Logger.isInfoEnabled()方法的一些代码示例,展示了Logger.isInfoEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isInfoEnabled()方法的具体详情如下:
包路径:freemarker.log.Logger
类名称:Logger
方法名:isInfoEnabled

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 +

相关文章