2015-08-06 5 views

ответ

0

Вы можете настроить контекст LOG4J-Настройки по:

org.apache.logging.log4j.core.LoggerContext ctx = (LoggerContext) LogManager.getContext(false); 
ctx.reconfigure(); 

Если вы, возможно, установите новый XML-путь:

System.setProperty("my.log", Settings.userStartDir + "\\log4j.xml"); 

перед кодом выше.