Mercurial > hg > RemoteEditor > REPSessionManager
view rep/channel/REPLogger.java @ 162:2bd3264abf55
*** empty log message ***
author | pin |
---|---|
date | Thu, 28 Aug 2008 16:54:54 +0900 |
parents | 4ae9da03cf1e |
children | 72252e970a8b |
line wrap: on
line source
package rep.channel; public class REPLogger { private int logLevel; /** simulation log command */ synchronized public void writeLog(String log, int level){ if ( level<=logLevel ) System.out.println(log); System.out.flush(); } public void writeLog(String log){ writeLog(log, 0); } public void writeLog(Thread thr, String log, int level){ writeLog(thr.getName()+": "+log, level); } public void setLogLevel(int logLevel) { this.logLevel = logLevel; } }