Package com.dianping.cat.message

Examples of com.dianping.cat.message.Trace.addData()


        Cat.logTrace("Trace", "Info");
        Cat.logTrace("Trace", "Dubug", Trace.SUCCESS, "sss");
        Trace trace = Cat.newTrace("Trace", "Error");

        trace.setStatus(Trace.SUCCESS);
        trace.addData("errorTrace");
        t.setStatus("Fail");
      } catch (Exception e) {
        t.setStatus(Transaction.SUCCESS);
        Cat.logError(e);
        throw e;
View Full Code Here


  public void logTrace(String type, String name, String status, String nameValuePairs) {
    if (m_manager.isTraceMode()) {
      Trace trace = newTrace(type, name);

      if (nameValuePairs != null && nameValuePairs.length() > 0) {
        trace.addData(nameValuePairs);
      }

      trace.setStatus(status);
      trace.complete();
    }
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.