- String m = "";
- while((s = br.readLine()) != null) m += s + "\n";
- if (m.length() > 0) log(o, m.substring(0, m.length() - 1), level);
+ if (stackTraces) {
+ String s = null;
+ String m = "";
+ while((s = br.readLine()) != null) m += s + "\n";
+ if (m.length() > 0) log(o, m.substring(0, m.length() - 1), level);
+ } else {
+ message = br.readLine();
+ String s = br.readLine();
+ if (s.indexOf('(') != -1) message = message + " " + s.substring(s.indexOf('('));
+ log(o, message, level);
+ }
+ lastClassName = "";