Forum Discussion

dhafirm's avatar
15 years ago

How can I change the log folder?

Hi,
I have Java Unit test class that uses SoapUITestCaseRunner to load up an soapUI project file and run the test suite.

The problem is it emits all the log files like soapui-errors.og, soapui.log and global-groovy.log into the root directory.

I would like to direct them into a different path programmatically ( I don't wont to temper with soapui-log4j.xml) as I think it should handle it as a property setting. I don't know what property to set and how?

I have tried:
String[] props = new String[1];        
props[0] = "soapui_log_dir=target";
runner.setProjectProperties(props);

but that changed nothing.

I appreciate any guidance.

Thanks

3 Replies

  • SiKing's avatar
    SiKing
    Community Hero
    Sorry I cannot help you, but would love to find a solution to this as it would help me with a problem that I am having.
  • SiKing's avatar
    SiKing
    Community Hero
    I have noticed that you can do something like
    <con:setting id="com.eviware.soapui.SoapUI@workspace">/home/myself/soapui-4.0.1/work-workspace.xml</con:setting>
    in your soapui-settings.xml to change the filename and location of the default workspace file. I wonder if there is something equivalent for log files. I have tried to modify the values of:

    • com.eviware.soapui.SoapUI@errorLog

    • com.eviware.soapui.SoapUI@groovyLogger

    • com.eviware.soapui.SoapUI@log

    all without any success. Perhaps someone else know something?
  • try without array String props = new String;

    Array ins string is automatically ))