myServer.setConsoleLoggingToMicro();
}
//setup logger to log to file
Logger logger = null;
FileHandler txtLog = null;
final String logDir = CmpConfiguration.getTCPLogDir();
final File logFile = new File(logDir + "/");
if(!logFile.canRead()) {
logFile.mkdir();
}
try {
logger = Logger.getLogger("");
logger.setLevel(Level.FINEST);
logger = Logger.getLogger("cmptcpserver");
logger.setLevel(Level.FINEST);
txtLog = new FileHandler(logDir+"/cmptcpserver.log");
//reduce info
txtLog.setFormatter(new org.quickserver.util.logging.MicroFormatter());
logger.addHandler(txtLog);
myServer.setAppLogger(logger); //imp
//myServer.setConsoleLoggingToMicro();