How does slf4j bind to implementation? Does it really do so during compile time?

后端 未结 6 2085
轮回少年
轮回少年 2021-02-13 03:58

In the documentation for slf4j it says that the binding happens during complie time:

\"SLF4J does not rely on any special class loader machinery. In fact, each SLF4J bi

6条回答
  •  南笙
    南笙 (楼主)
    2021-02-13 04:24

    From what I have seen, it does this by expecting the class StaticLoggingBinder to be in the same package (org.slf4j.impl), regardless of the implementation - so it always finds it in the same place.

提交回复
热议问题