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