Forum Discussion

jc111's avatar
jc111
Occasional Contributor
13 years ago

log4j Logging

How do I setup log4j settings to log to a file? I'm interested in logging the HTTP log from soapUI. I saw that that there's a Groovy script for logging to a file, but I would like to use log4j since the log would be updated automatically.

3 Replies

  • jc111's avatar
    jc111
    Occasional Contributor
    @redfish4ktc, I change this to "ALL", but I still don't see the http entries in the log:

    <logger name="com.eviware.soapui.impl.wsdl.support.http">
    <level value="ALL" />
    <appender-ref ref="SOAPUI"/>
    <appender-ref ref="CONSOLE"/>
    </logger>
  • jc111's avatar
    jc111
    Occasional Contributor
    @redfish4ktc,
    Still no luck. In addition to adding your appender, I added this appender refference. No soapui-http.log was created. In the regular low I do see an error about not finding the wsdl file, but the mock service in the GUI works fine so I don't think that error should affect logging the HTTP messages.

    <logger name="com.eviware.soapui.impl.wsdl.support.http">
    <level value="ALL" />
    <appender-ref ref="SOAPUI"/>
    <appender-ref ref="CONSOLE"/>
    <appender-ref ref="HTTP-FILE"/>
    </logger>