projects
/
org.ibex.util.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
176228e
)
add printStackTrace() method to Log.java
author
adam
<adam@megacz.com>
Sat, 1 Mar 2008 05:51:59 +0000
(
05:51
+0000)
committer
adam
<adam@megacz.com>
Sat, 1 Mar 2008 05:51:59 +0000
(
05:51
+0000)
darcs-hash:
20080301055159
-5007d-
f68e1f55b5f7abc90d970c34dfad417a03c479cc
.gz
src/org/ibex/util/Log.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/util/Log.java
b/src/org/ibex/util/Log.java
index
6b42ea2
..
175a8df
100644
(file)
--- a/
src/org/ibex/util/Log.java
+++ b/
src/org/ibex/util/Log.java
@@
-122,6
+122,14
@@
public class Log {
}
private static String lastClassName = null;
+
+ public static void printStackTrace(Object o, int level) {
+ try {
+ throw new Exception();
+ } catch (Exception e) {
+ log(o, e, level);
+ }
+ }
private static synchronized void log(Object o, Object message, int level) {
if (level < Log.level) return;
if (firstMessage && !logDates) {