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

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

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

Log.isErrorEnabled介绍

暂无

代码示例

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

public static boolean isErrorEnabled() {
  return Holder.log.isErrorEnabled();
}

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

public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
  HttpServletRequest request = (HttpServletRequest)req;
  HttpServletResponse response = (HttpServletResponse)res;
  request.setCharacterEncoding(encoding);
  
  String target = request.getRequestURI();
  if (contextPathLength != 0) {
    target = target.substring(contextPathLength);
  }
  
  boolean[] isHandled = {false};
  try {
    handler.handle(target, request, response, isHandled);
  }
  catch (Exception e) {
    if (log.isErrorEnabled()) {
      String qs = request.getQueryString();
      log.error(qs == null ? target : target + "?" + qs, e);
    }
  }
  
  if (isHandled[0] == false) {
    chain.doFilter(request, response);
  }
}

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

if (log.isErrorEnabled()) {
  String qs = request.getQueryString();
  log.error(errorCode + " Error: " + (qs == null ? target : target + "?" + qs), e);

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

if (log.isErrorEnabled()) {
  String qs = request.getQueryString();
  log.error(qs == null ? target : target + "?" + qs, e);
if (log.isErrorEnabled()) {
  String qs = request.getQueryString();
  log.error(qs == null ? target : target + "?" + qs, e);

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

public static boolean isErrorEnabled() {
  return Holder.log.isErrorEnabled();
}

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

public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
  HttpServletRequest request = (HttpServletRequest)req;
  HttpServletResponse response = (HttpServletResponse)res;
  request.setCharacterEncoding(encoding);
  
  String target = request.getRequestURI();
  if (contextPathLength != 0) {
    target = target.substring(contextPathLength);
  }
  
  boolean[] isHandled = {false};
  try {
    handler.handle(target, request, response, isHandled);
  }
  catch (Exception e) {
    if (log.isErrorEnabled()) {
      String qs = request.getQueryString();
      log.error(qs == null ? target : target + "?" + qs, e);
    }
  }
  
  if (isHandled[0] == false) {
    chain.doFilter(request, response);
  }
}

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

if (log.isErrorEnabled()) {
  String qs = request.getQueryString();
  log.error(errorCode + " Error: " + (qs == null ? target : target + "?" + qs), e);

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

if (log.isErrorEnabled()) {
  String qs = request.getQueryString();
  log.error(qs == null ? target : target + "?" + qs, e);
  if (log.isErrorEnabled()) {
    String qs = request.getQueryString();
    log.error(qs == null ? target : target + "?" + qs, e);
if (log.isErrorEnabled()) {
  String qs = request.getQueryString();
  log.error(qs == null ? target : target + "?" + qs, e);

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

if (log.isErrorEnabled()) {
  String qs = request.getQueryString();
  log.error(qs == null ? target : target + "?" + qs, e);
if (log.isErrorEnabled()) {
  String qs = request.getQueryString();
  log.error(qs == null ? target : target + "?" + qs, e);

相关文章