Mercurial > hg > RemoteEditor > Eclipse
view src/remoteeditor/editors/Logger.java @ 193:3133040ee4f4
(no commit message)
author | one |
---|---|
date | Wed, 31 Dec 2008 15:06:22 +0900 |
parents | |
children |
line wrap: on
line source
package remoteeditor.editors; public class Logger { public static void print(Object obj){ StackTraceElement e = new Exception().getStackTrace()[1]; System.out.println(e.getClassName() + "." + e.getMethodName() + "() : " + obj.toString()); } public static void print() { StackTraceElement e = new Exception().getStackTrace()[1]; System.out.println(e.getClassName() + "." + e.getMethodName() + "()"); } public static void printT(Object obj){ System.out.println(Thread.currentThread().toString() + " : " + obj); } public static void print(LogTarget target, Object obj){ target.printLog(obj); } }