[proxool] 配置錯誤 log4j:WARN No appenders could be found for logger (org.logicalcobwebs.proxool.ProxoolFacade).
如果你配置proxool時出現
log4j:WARN No appenders could be found for logger (org.logicalcobwebs.proxool.ProxoolFacade).
log4j:WARN Please initialize the log4j system properly.
可以嘗試以下解法
其實錯誤訊息就有跟你說 log4j 並沒有被初始化
這時候只要在java內進行初始話就好囉
static {
Logger rootLogger = Logger.getRootLogger();
rootLogger.setLevel(Level.WARN);
rootLogger.addAppender(new ConsoleAppender(
new PatternLayout("%-6r [%p] %c - %m%n")));
}
log4j:WARN No appenders could be found for logger (org.logicalcobwebs.proxool.ProxoolFacade).
log4j:WARN Please initialize the log4j system properly.
可以嘗試以下解法
其實錯誤訊息就有跟你說 log4j 並沒有被初始化
這時候只要在java內進行初始話就好囉
static {
Logger rootLogger = Logger.getRootLogger();
rootLogger.setLevel(Level.WARN);
rootLogger.addAppender(new ConsoleAppender(
new PatternLayout("%-6r [%p] %c - %m%n")));
}