Mercurial > hg > RemoteEditor > REPSessionManager
diff test/editortest/Logger.java @ 416:b7f42fc75a36
(no commit message)
author | one |
---|---|
date | Wed, 31 Dec 2008 14:47:39 +0900 |
parents | 784a4d67e6a5 |
children |
line wrap: on
line diff
--- a/test/editortest/Logger.java Tue Dec 09 16:34:41 2008 +0900 +++ b/test/editortest/Logger.java Wed Dec 31 14:47:39 2008 +0900 @@ -1,1 +1,1 @@ -package test.editortest; 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); } } \ No newline at end of file +package test.editortest; 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){ StackTraceElement e = new Exception().getStackTrace()[1]; String msg = e.getClassName() + "." + e.getMethodName() + "() : " + obj.toString(); if(target != null){ target.printLog(msg); } } } \ No newline at end of file