Hutool怎样指定日志工具

 

        //指定Hutool使用Log4j日志工厂
        LogFactory.setCurrentLogFactory(Log4jLogFactory.class);
        Log log2 = LogFactory.get();
        log2.debug("这是hutool的setCurrentLogFactory后的 debug 日志");

 

posted @ 2025-06-09 13:30  火军刀  阅读(35)  评论(0)    收藏  举报