ITeye博客

LOG4J在junit中自动加载

jdkleo · 2018-04-13 13:44 · java · 编程语言 · Markdown

InputStream log4j = Yourclass.class.getClass().getResourceAsStream("/log4j.properties");
PropertyConfigurator.configure(log4j);

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。