public static Logger getLogger(String className) { Logger logger = Logger.getLogger(className); logger.setUseParentHandlers(false); logger.addHandler(fileHandler); logger.setLevel(Constants.getLogLevel()); return logger; }
public static String getMyIpAddress() { return IP_ADDRESS + ":" + Constants.getPort(); }