This may depend on the particular log library, but usually it is more than a name. This means the hierarchy of the registrar. When you set up your registrar, you usually pass in both the log level and the registrar name, for example:
<logger name="org.hibernate" level="ALL"/>
This attribute is not just a name, but an attribute means hierarchy. And if instead you would write something like:
<logger name="org" level="ALL"/>
This will affect not only sleep mode, but also everything that is in the org package. On the other hand, if you write something like:
<logger name="org.hibernate.validator" level="ALL"/>
this only applies to the hibernate authentication package and not the rest of hibernate.
By the way, if you do not want to specify a specific class for each factory, you can use something like (Kotlin):
val logger: Logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass())
yuranos87 Feb 07 '19 at 10:04 2019-02-07 10:04
source share