Mercurial > hg > RemoteEditor > REPSessionManager
view rep/channel/REPLogger.java @ 324:e235998427a6 before-merge-fix
try to fix merger
author | kono |
---|---|
date | Sat, 11 Oct 2008 16:31:03 +0900 |
parents | edb373aa421e |
children | d2762d669617 |
line wrap: on
line source
package rep.channel; public class REPLogger { static REPLogger single = new REPLogger(); public static REPLogger singleton(){ // if(single==null){ // synchronized(REPLogger.class){ // if(single==null) // single = new REPLogger(); // } // } return single; } protected REPLogger(){ } private int logLevel; /** simulation log command */ public void writeLog(String log, int level){ if ( level<=logLevel ) System.out.println(Thread.currentThread().getName()+": "+log); //System.out.flush(); } public void writeLog(String log){ writeLog(log, 0); } public void setLogLevel(int logLevel) { this.logLevel = logLevel; } }