private void add(String s) { LogManager lm = LogManager.getLogManager(); Logger logger = lm.getLogger(s); /* * if this isn't the first instance, copy everything over. */ if (logger != null) { copyLogger(logger); } else { lm.addLogger(this); } }