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=aa24171b42583d7bd44bbcfb1bd42a1af4076c7a;hb=e497cb520e0a5ef7de3db0f515af1822afb6a7a6;hp=0554f257ec5e7dab7db6d7747077ff9a56447f12;hpb=e2dedbcad71fdf6df74abe5c43516a4d88d145d3;p=org.ibex.core.git diff --git a/src/org/xwt/util/Log.java b/src/org/xwt/util/Log.java index 0554f25..aa24171 100644 --- a/src/org/xwt/util/Log.java +++ b/src/org/xwt/util/Log.java @@ -27,9 +27,11 @@ public class Log { public static void logJS(Object message) { log(JS.getSourceName() + ":" + JS.getLine(), message); } /** message can be a String or a Throwable */ - public static synchronized void log(Object o, Object message) { - log(o, message, INFO); - } + 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); } + public static synchronized void info(Object o, Object message) { log(o, message, INFO); } + public static synchronized void warn(Object o, Object message) { log(o, message, WARN); } + public static synchronized void error(Object o, Object message) { log(o, message, ERROR); } // these two logging levels serve ONLY to change the color; semantically they are the same as DEBUG private static final int DIAGNOSTIC = -2;