본문 바로가기

Util & Etc & Build Tool

[Log4j] No appender warning 에러 발생 시

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

resource 에 log4j.properties 가 있어야 함.

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

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