Yes, I have my own log4j.properties in src/main/resources and I have also
tried in src/test/resources, but it is not used.
I found a solution. I can specify another file with
-Dlog4j.configuration=log4j-test.properties
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.2</version>
<configuration>
<skip>false</skip>
<forkMode>pertest</forkMode>
<!-- <forkMode>once</forkMode> -->
<argLine>-Xms32m -Xmx1024m
-Dlog4j.configuration=log4j-test.properties</argLine>
<jvm>${JAVA_HOME}\bin\java</jvm>
<excludes>
<exclude>**/IsolatedDatabaseTestCase.java</exclude>
</excludes>
</configuration>
</plugin>
thorque wrote:
>
> If you create a log4j.properties in the src/main/resources did not work?
>
> I think both files should only define logger for level error...you can
> post a question into the forum of oaw and/or add an issue in oaw's
> bugzilla.
>
> Thorsten
>
>
--
View this message in context:
http://www.nabble.com/log4j.properties-tf3804666s17564.html#a10778335
Sent from the Fornax-Platform mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer