In the documentation of LogManager, the following is set of the Handlers property:
A property "handlers". This defines a whitespace or comma separated list of class names for handler classes to load and register as handlers on the root Logger (the Logger named "").
A property ".handlers". This defines a whitespace or comma separated list of class names for handlers classes to load and register as handlers to the specified logger. Each class name must be for a Handler class which has a default constructor. Note that these Handlers may be created lazily, when they are first used.
Since the name of the root logger is the empty string (""), it seems to me like both of the clauses below should be equivalent:
handlers = myHandler
.handlers = myHandler
Here's an example from the JDK's lib/logging.properties file:
handlers= java.util.logging.ConsoleHandler
.level= INFO
I've noticed that weird things are happening when I attempt to enumerate the handlers on the root logger. I suspect that this has to do with the implementation of LogManager referring to one of those properties. However, I'd like to try and understand whether I am correct in my assumption of equivalency.
To clarify: My goal with this question is to understand whether the behaviour should be identical.