вход свободного городского населения и log4j файл свойств

Учитывая Ваши условия, я не думаю, что можно сделать это в одном операторе Linq. Но можно присоединиться к результатам запросов L2S в Linq к запросу Объектов.

12
задан skaffman 17 May 2012 в 15:18
поделиться

1 ответ

The file commons-logging.properties is only read from commons logging while log4j will look for log4j.configuration in the system properties.

So you must either specify them with -Dlog4j.configuration=log4j-test.properties on the command line as a JVM option or you must call System.setProperty() before the first call to any logging method (which is usually pretty hard to achieve).

Note: If you can, use the XML config log4j.xml; it's much more simple and powerful for configuring log4j.

11
ответ дан 2 December 2019 в 21:44
поделиться
Другие вопросы по тегам:

Похожие вопросы: