X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Futil%2FLog.java;fp=src%2Forg%2Fxwt%2Futil%2FLog.java;h=e53625257c03f20c2de65d9a44a973434873d6e9;hb=62b09c2447b9516863916b076fe64fe98ec1670f;hp=aa24171b42583d7bd44bbcfb1bd42a1af4076c7a;hpb=ea8d7a51a7c20e9fccacdd7d16b9a3e55a6bd8e3;p=org.ibex.core.git diff --git a/src/org/xwt/util/Log.java b/src/org/xwt/util/Log.java index aa24171..e536252 100644 --- a/src/org/xwt/util/Log.java +++ b/src/org/xwt/util/Log.java @@ -22,10 +22,6 @@ public class Log { /** true iff nothing has yet been logged */ public static boolean firstMessage = true; - /** log a message with the current JavaScript sourceName/line */ - public static void logJS(Object o, Object message) { logJS(message); } - public static void logJS(Object message) { log(JS.getSourceName() + ":" + JS.getLine(), message); } - /** message can be a String or a Throwable */ public static synchronized void echo(Object o, Object message) { log(o, message, ECHO); } public static synchronized void debug(Object o, Object message) { log(o, message, DEBUG); } @@ -145,16 +141,16 @@ public class Log { if (!name.equals("")) name += " : "; if (o == null) { - Log.logJS(indent + name + ""); + JS.log(indent + name + ""); } else if (o instanceof JSArray) { - Log.logJS(indent + name + ""); + JS.log(indent + name + ""); JSArray na = (JSArray)o; for(int i=0; i"); + JS.log(indent + name + ""); JS s = (JS)o; Enumeration e = s.keys(); while(e.hasMoreElements()) { @@ -165,7 +161,7 @@ public class Log { s.get(((Integer)key)) : s.get(key.toString())); } } else { - Log.logJS(indent + name + o); + JS.log(indent + name + o); } }