This is well documented. By default, registrars publish their parent handlers recursively to the tree until another handler is specified. You can iterate over the parent handlers and see that the default handler for the parent logger is the ConsoleHandler, which uses System.err to publish log entries.
public class Main { public static void main(String[] args) { Handler[] handlers = Logger.getLogger(Main.class.getName()).getParent().getHandlers(); for (Handler handler : handlers) { System.out.println(handler.getClass().getName()); } } }
user1326628
source share