com.jfinal.log.Log.warn()方法的使用及代码示例

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

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

Log.warn介绍

暂无

代码示例

代码示例来源:origin: jfinal/jfinal

public static void warn(String message, Throwable t) {
  Holder.log.warn(message, t);
}

代码示例来源:origin: jfinal/jfinal

public static void warn(String message) {
  Holder.log.warn(message);
}

代码示例来源:origin: JpressProjects/jpress

public void parse(File wordpressXml) {
  try {
    SAXParserFactory factory = SAXParserFactory.newInstance();
    SAXParser parser = factory.newSAXParser();
    parser.parse(wordpressXml, this);
  } catch (Exception e) {
    log.warn("ConfigParser parser exception", e);
  }
}

代码示例来源:origin: JpressProjects/jpress

private static boolean save(Properties p, File pFile) {
  FileOutputStream fos = null;
  try {
    fos = new FileOutputStream(pFile);
    p.store(fos, "Auto create by JPress");
  } catch (Exception e) {
    log.warn("InstallUtils save error", e);
    return false;
  } finally {
    if (fos != null)
      try {
        fos.close();
      } catch (IOException e) {
      }
  }
  return true;
}

代码示例来源:origin: JpressProjects/jpress

public static int getAsInt(String key, int defaultValue) {
  String value = get(key);
  if (StrUtils.isBlank(value)) {
    return defaultValue;
  }
  try {
    return Integer.parseInt(value);
  } catch (Exception ex) {
    LOG.warn(ex.toString(), ex);
    return defaultValue;
  }
}

代码示例来源:origin: JpressProjects/jpress

public static float getAsFloat(String key, float defaultValue) {
  String value = get(key);
  if (StrUtils.isBlank(value)) {
    return defaultValue;
  }
  try {
    return Float.parseFloat(value);
  } catch (Exception ex) {
    LOG.warn(ex.toString(), ex);
    return defaultValue;
  }
}

代码示例来源:origin: jfinal/jfinal

static Cache getOrAddCache(String cacheName) {
  Cache cache = cacheManager.getCache(cacheName);
  if (cache == null) {
    synchronized(CacheKit.class) {
      cache = cacheManager.getCache(cacheName);
      if (cache == null) {
        log.warn("Could not find cache config [" + cacheName + "], using default.");
        cacheManager.addCacheIfAbsent(cacheName);
        cache = cacheManager.getCache(cacheName);
        log.debug("Cache [" + cacheName + "] started.");
      }
    }
  }
  return cache;
}

代码示例来源:origin: JpressProjects/jpress

/**
   * 解析markdown文档
   *
   * @param mdFile mdFile
   */
  public void parse(File mdFile) {
    try {
      markdown = FileUtils.readString(mdFile);
      datas = MarkdownUtils.getFrontMatter(markdown);
    } catch (Exception e) {
      log.warn("ConfigParser parser exception", e);
    }
  }
}

代码示例来源:origin: JpressProjects/jpress

log.warn("ImageUtils pressImage error", e);

代码示例来源:origin: jfinal/jfinal

Parameter p) {
if(!p.isNamePresent()) {
  log.warn("You should config compiler argument \"-parameters\" for parameter injection of action : " +
      controllerClass.getName() + "." + method.getName() + "(...) \n" +
      "Visit http://www.jfinal.com/doc/3-3 for details \n");

代码示例来源:origin: JpressProjects/jpress

File waterImageFile = new File(PathKit.getWebRootPath(), waterImage);
if (!waterImageFile.exists()) {
  LOG.warn("水印功能已经启用,但是水印图片不存在。");
  return;
      alpha);
} catch (Exception ex) {
  LOG.warn("水印处理失败:" + model.getPath());

代码示例来源:origin: jfinal/jfinal

msg = msg + "\n" + e.getMessage();
log.warn(msg);

代码示例来源:origin: jfinal/jfinal

if (log.isWarnEnabled()) {
  String qs = request.getQueryString();
  log.warn("404 Action Not Found: " + (qs == null ? target : target + "?" + qs));

代码示例来源:origin: com.jfinal/jfinal

public static void warn(String message, Throwable t) {
  Holder.log.warn(message, t);
}

代码示例来源:origin: yangfuhai/jboot

private static String encrypt(String encrypt_key, long saveTime, String maxAgeInSeconds, String value) {
  if (JbootWebConfig.DEFAULT_COOKIE_ENCRYPT_KEY.equals(encrypt_key)) {
    log.warn("warn!!! encrypt key is defalut value. please config \"jboot.web.cookieEncryptKey = xxx\" in jboot.properties ");
  }
  return HashKit.md5(encrypt_key + saveTime + maxAgeInSeconds + value);
}

代码示例来源:origin: yangfuhai/jboot

public JbootDistributedRunnable(Runnable runnable) {
  this.runnable = runnable;
  this.key = "jbootRunnable:" + runnable.getClass().getName();
  this.redis = Jboot.me().getRedis();
  if (redis == null) {
    LOG.warn("redis is null, " +
        "can not use @EnableDistributedRunnable in your Class[" + runnable.getClass().getName() + "], " +
        "or config redis info in jboot.properties");
  }
}

代码示例来源:origin: yangfuhai/jboot

public JbootDistributedRunnable() {
  this.redis = Jboot.me().getRedis();
  this.key = "jbootRunnable:" + this.getClass().getName();
  if (redis == null) {
    LOG.warn("redis is null, " +
        "can not use @EnableDistributedRunnable in your Class[" + this.getClass().getName() + "], " +
        "or config redis info in jboot.properties");
  }
}

代码示例来源:origin: yangfuhai/jboot

public JbootDistributedRunnable(Runnable runnable, int expire) {
  this.expire = (expire - 1) * 1000;
  this.runnable = runnable;
  this.key = "jbootRunnable:" + runnable.getClass().getName();
  this.redis = Jboot.me().getRedis();
  if (redis == null) {
    LOG.warn("redis is null, " +
        "can not use @EnableDistributedRunnable in your Class[" + runnable.getClass().getName() + "], " +
        "or config redis info in jboot.properties");
  }
}

代码示例来源:origin: yangfuhai/jboot

public void notifyListeners(String channel, Object message) {
  boolean globalResult = notifyAll(channel, message, allChannelListeners);
  boolean channelResult = notifyAll(channel, message, listenersMap.get(channel));
  if (!globalResult && !channelResult) {
    LOG.warn("recevie mq message, bug has not mq listener to process. channel:" +
        channel + "  message:" + String.valueOf(message));
  }
}

代码示例来源:origin: yangfuhai/jboot

public static Parameter createParam(String paramType) {
  for (ParameterFactory item : values()) {
    if (item.paramType.equalsIgnoreCase(paramType)) {
      return item.create();
    }
  }
  LOGGER.warn("Unknown implicit parameter type: [" + paramType + "]");
  return null;
}

相关文章