code: public static Logger getLogger(String name) {
          Logger logger = Logger.getLogger(name);
          logger.setUseParentHandlers(false);
          for (Handler handler : logger.getHandlers()) {
              logger.removeHandler(handler);
          }
          // TODO when output log to the standard error
          Formatter formatter = new Formatter() {
              @Override
              public String format(LogRecord record) {
                  long millis = record.getMillis();
                  return String.format("[%tF %<tT.%<tL]%s%n", millis, record.getMessage());
              }
          };
          ConsoleHandler handler = new ConsoleHandler();
          handler.setFormatter(formatter);
          logger.addHandler(handler);
          if (loggerEnabled) {
              logger.setLevel(Level.INFO);
          } else {
              logger.setLevel(Level.OFF);
          }
          return logger;
      }
docs: TODO don't remove and add handler each time this method is called..