Forum Discussion

mlenosgrande's avatar
mlenosgrande
Contributor
14 years ago

Log4j configurability not taking in count

According to the documentation, we can use our own log4j.

I have try to customize it to run the tests more fast by:
-disabling info logs
-making the log asynchronous (org.apache.log4j.AsyncAppender)

Unfortunately in the code, some logs dont behave according to the changed configuration . The most verbose one is this line :

10:20:45,332 INFO [SoapUITestCaseRunner] running step [GetDirectVariablesChildren -idvar2]
10:20:45,348 INFO [SoapUITestCaseRunner] Assertion [SOAP Response] has status VALID
10:20:45,348 INFO [SoapUITestCaseRunner] Assertion [Schema Compliance] has status VALID


And according to your code line 543, we have those lines :

log.info( "Assertion [" + assertion.getName() + "] has status " + assertion.getStatus());
if( assertion.getStatus() == AssertionStatus.FAILED )
{
log.info( "ASSERTION FAILED -> " + assertion.getErrors());


As you can see ther is no condition test if log.isInfoEnabled().

Im trying to disable without success :


<logger name="com.eviware.soapui.tools.SoapUITestCaseRunner">
<level value="OFF" />
<appender-ref ref="ASYNC"/>
</logger>

I'm using sopaui 3.5.1 but This code pointed is in the trunk too.

I know i could rebuild it but could you please try to investigate that ?


Thanks in advance for your support.

Omar

1 Reply

  • Ok thank you but i cant connect to their svn (not found error).
    I know that their stuff just consume more time without evaluation but tha doesnt explain why the log4j sett to OFF at rool level is not used.