Util & Etc & Build Tool

[Log4j] No appender warning 에러 발생 시

무대포개발자 2017. 5. 10. 15:55

classpath 에 log4, slf4j jar 가 있어야 하고,

resource 에 log4j.properties 가 있어야 함.

private static final String log4jConf = "conf/log4j.properties";

PropertyConfigurator.configure(Resources.getResourceAsProperties(log4jConf));