您的位置:首頁技術文章
文章詳情頁

Simple Logging Facade for Java 1.0 發布

瀏覽:92日期:2024-03-10 11:48:35
Simple Logging Facade for Java 終于發布了1.0 的final版本。SLF4J 意在為不同的logging API提供一個簡單的facade,從而最終用戶根據部署的需要進行相關的實現。用戶可以直接實現 SLF4J 的接口,比如 NLOG4J 或者 SimpleLogger都是這么作的,或者我們為指定的接口實現相關的SLF4J 適配器,比如Log4jLoggerAdapter 和 JDK14LoggerAdapter。官方提到:SLF4J does not rely on any special class loader machinery. In fact, the binding between SLF4J and a given logging API implementation is performed statically at compile time. Each binding is hardwired to use one and only specific logging API implementation. Thus, SLF4J suffers from none of the class loader problems or memory leaks observed with other approaches.
標簽: Java
相關文章:
国产综合久久一区二区三区