問題文
Loggers are obtained by name. How are Logger instances related to one another, and what follows from that relationship?
選択肢
- Every logger is independent, so each one needs a handler which is attached before anything is written.
- Names form a hierarchy separated by dots, and a record that passes the level check is offered to the handlers of the logger and then to those of its ancestors.
- Names form a hierarchy but the relationship affects only the level, so a record is written by the handlers of the root logger.
- The hierarchy is derived from the package structure of the classes that request the loggers, so two loggers with different names stay unrelated.