support monitor

This commit is contained in:
wenshao
2013-08-14 18:51:36 +08:00
parent 4c625d06ad
commit 4ad313dfe2
10 changed files with 502 additions and 205 deletions
@@ -150,19 +150,6 @@ public class Utils {
return buf.toString();
}
public static String toString(Throwable error) {
if (error == null) {
return null;
}
StringWriter strWriter = new StringWriter();
PrintWriter out = new PrintWriter(strWriter);
error.printStackTrace(out);
out.close();
String text = strWriter.toString();
return text;
}
public static String toString(StackTraceElement[] stackTrace) {
StringBuilder buf = new StringBuilder();
for (StackTraceElement item : stackTrace) {