In the java.util.logging.Logger Java class, what is the difference between global and root registrars? They are the same?
No, they do not match.
public static void main(String[] args) throws Exception {
System.out.println(Logger.getLogger(""));
System.out.println(Logger.getGlobal());
System.out.println(Logger.getGlobal().getParent());
}
, , :
java.util.logging.LogManager$RootLogger@27082746
java.util.logging.Logger@66133adc
java.util.logging.LogManager$RootLogger@27082746
, . , . - , . System.out , .
Logger:: getLogger name, ?
.