Examples of logError()


Examples of com.alibaba.citrus.webx.util.ErrorHandlerHelper.logError()

                rundata.getResponse().setStatus(statusCode);
                helper.setStatusCode(statusCode); // 更新request attributes
            }

            // 打印日志
            helper.logError(logger, loggingDetail);

            // 设定错误页面target
            if (target == null) {
                target = defaultPage;
            }
View Full Code Here

Examples of com.dianping.cat.message.MessageProducer.logError()

          Cat.logError(e);
          t.setStatus(e);

          m_logger.error(String.format("Already being created (%s)!", path), e);
        } catch (AccessControlException e) {
          cat.logError(e);
          t.setStatus(e);
          m_logger.error(String.format("No permission to create HDFS file(%s)!", path), e);
        } catch (Exception e) {
          cat.logError(e);
          t.setStatus(e);
View Full Code Here

Examples of com.dianping.cat.message.MessageProducer.logError()

        } catch (AccessControlException e) {
          cat.logError(e);
          t.setStatus(e);
          m_logger.error(String.format("No permission to create HDFS file(%s)!", path), e);
        } catch (Exception e) {
          cat.logError(e);
          t.setStatus(e);
          m_logger.error(String.format("Uploading file(%s) to HDFS(%s) failed!", file, path), e);
        } finally {
          try {
            if (fdos != null) {
View Full Code Here

Examples of com.dianping.cat.message.MessageProducer.logError()

      }

      return null;
    } catch (IOException e) {
      t.setStatus(e);
      cat.logError(e);
      throw e;
    } catch (RuntimeException e) {
      t.setStatus(e);
      cat.logError(e);
      throw e;
View Full Code Here

Examples of com.dianping.cat.message.MessageProducer.logError()

      t.setStatus(e);
      cat.logError(e);
      throw e;
    } catch (RuntimeException e) {
      t.setStatus(e);
      cat.logError(e);
      throw e;
    } finally {
      t.complete();
    }
  }
View Full Code Here

Examples of com.dianping.cat.message.MessageProducer.logError()

        task.finish();
      }

      t.setStatus(Message.SUCCESS);
    } catch (Throwable e) {
      cat.logError(e);
      t.setStatus(e);
    } finally {
      t.complete();

      m_logger.info(String.format("Finished %s tasks in period [%s, %s]", m_tasks.size(), df.format(startDate),
View Full Code Here

Examples of com.dianping.cat.message.MessageProducer.logError()

      } catch (InterruptedException e) {
        // ignore
      }
      t.setStatus(Message.SUCCESS);
    } catch (RuntimeException e) {
      cat.logError(e);
      t.setStatus(e);
    } finally {
      t.complete();
    }
  }
View Full Code Here

Examples of com.dianping.cat.message.MessageProducer.logError()

      if (tree == null) {
        Transaction t = cat.newTransaction("System", "Log4jException");

        if (message != null) {
          cat.logError(String.valueOf(message), exception);
        } else {
          cat.logError(exception);
        }
        t.setStatus(Message.SUCCESS);
        t.complete();
View Full Code Here

Examples of com.dianping.cat.message.MessageProducer.logError()

        Transaction t = cat.newTransaction("System", "Log4jException");

        if (message != null) {
          cat.logError(String.valueOf(message), exception);
        } else {
          cat.logError(exception);
        }
        t.setStatus(Message.SUCCESS);
        t.complete();
      } else {
        cat.logError(exception);
View Full Code Here

Examples of com.dianping.cat.message.MessageProducer.logError()

          cat.logError(exception);
        }
        t.setStatus(Message.SUCCESS);
        t.complete();
      } else {
        cat.logError(exception);
      }
    }
  }

  private void logTrace(LoggingEvent event) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.