Forum Discussion

chilber's avatar
chilber
Occasional Contributor
5 years ago

ReadyAPI Runner on Jenkins writes logs in the home directory how do I clean up?

We use a ReadyAPI Runner on our Jenkins slave and we have seen that the runner writes his own log for every Job that it running. The log is located in the <home directory>/.readyapi directory, where ...
  • AlexanderLinkov's avatar
    AlexanderLinkov
    5 years ago

    Hi, chilber!

     

    To turn off logging, try editing the "soapui-log4j.xml" file in the "<ReadyAPI installation>/bin" folder.
    There is a number of "logger" elements that control what to log. Each of them has one or more child elements "AppenderRef" specifying output. Output defined in the "Appenders" element is located in the same file.
    If the appender writes to file (FILE, GLOBAL_GROOVY_LOG, LICENSE_LOG, and ERRORFILE), set the "level" attribute of AppenderRef to "OFF".

     

    For example, there is a "groovy.log" logger:

     

    <logger name="groovy.log" level="INFO" additivity="false">
    <AppenderRef ref="CONSOLE"/>
    <AppenderRef ref="GLOBAL_GROOVY_LOG" level="DEBUG"/>
    </logger>

     

    To turn off logging to files but keep logging in the console output, set level="OFF" for the second AppenderRef:

     

    <logger name="groovy.log" level="INFO" additivity="false">
    <AppenderRef ref="CONSOLE"/>
    <AppenderRef ref="GLOBAL_GROOVY_LOG" level="OFF"/>
    </logger>

     

    Repeat it for all the logger elements to not write logs to files.Hope it will solve your problem.