Mercurial > hg > RemoteEditor > REPSessionManager
comparison test/editortest/Logger.java @ 416:b7f42fc75a36
(no commit message)
author | one |
---|---|
date | Wed, 31 Dec 2008 14:47:39 +0900 |
parents | 784a4d67e6a5 |
children |
comparison
equal
deleted
inserted
replaced
415:648c676bf9df | 416:b7f42fc75a36 |
---|---|
17 System.out.println(Thread.currentThread().toString() + " : " + obj); | 17 System.out.println(Thread.currentThread().toString() + " : " + obj); |
18 } | 18 } |
19 | 19 |
20 | 20 |
21 public static void print(LogTarget target, Object obj){ | 21 public static void print(LogTarget target, Object obj){ |
22 target.printLog(obj); | 22 StackTraceElement e = new Exception().getStackTrace()[1]; |
23 String msg = e.getClassName() + "." + e.getMethodName() + "() : " + obj.toString(); | |
24 if(target != null){ | |
25 target.printLog(msg); | |
26 } | |
23 } | 27 } |
24 } | 28 } |