@@ -0,0 +1,1075 @@
+package com.dianping.cat.demo;%0A%0Aimport org.junit.Test;%0A%0Aimport com.dianping.cat.Cat;%0Aimport com.dianping.cat.message.Transaction;%0Aimport com.dianping.cat.message.spi.MessageTree;%0Aimport com.dianping.cat.message.spi.internal.DefaultMessageTree;%0A%0Apublic class TestCrashLog %7B%0A%0A%09@Test%0A%09public void test() throws InterruptedException %7B%0A%09%09for (int i = 0; i %3C 100; i++) %7B%0A%09%09%09Transaction t = Cat.newTransaction(%22url%22, %22crash%22);%0A%0A%09%09%09String message = parse(i);%0A%0A%09%09%09Cat.logEvent(%22Exception%22, message, %22ERROR%22, %22sdf%22);%0A%0A%09%09%09String plateform = getPlateform(i);%0A%09%09%09String version = getVersion(i);%0A%0A%09%09%09MessageTree tree = Cat.getManager().getThreadLocalMessageTree();%0A%09%09%09((DefaultMessageTree) tree).setIpAddress(plateform + %22:%22 + version);%0A%09%09%09((DefaultMessageTree) tree).setDomain(%22CrashLogWeb%22);%0A%09%09%09t.complete();%0A%09%09%7D%0A%09%09Thread.sleep(10000);%0A%09%09// code nullpoint%0A%09%7D%0A%0A%09private String parse(int index) %7B%0A%09%09return %22message%22 + index %25 3;%0A%09%7D%0A%0A%09private String getPlateform(int index) %7B%0A%09%09return %22andriod%22 + index %25 4;%0A%09%7D%0A%0A%09private String getVersion(int index) %7B%0A%09%09return %22version%22 + index %25 3;%0A%09%7D%0A%0A%7D%0A

modify the creashlog