Forum Discussion

KSmith's avatar
KSmith
Occasional Contributor
16 years ago

groovy log to file

Hello,

I would like to write the groovy log to file automatically (without right click,  'Export to File' in the UI - post run). 

Is there a config file setting for this?

thanks and regards,
Karl

6 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Karl,

    you can modify the soapui-log4j.xml file in the bin directory (since 2.0.2 I think) and add a category and appender for "groovy.log" that goes to a dedicated file..

    ok?

    regards!

    /Ole
    eviware.com
  • KSmith's avatar
    KSmith
    Occasional Contributor
    of course...

    got it.  Thank you very much!
  • zxsoap's avatar
    zxsoap
    Occasional Contributor
    Hi Ole,

    I used 2.0.2 Pro Ver, but could not find \bin\soapui-log4j.xml.

    Do I need to store something else to get it?

    Thanks,
    zx
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi,

    ok.. I've attached the default one, just put it in this bin folder and modify it as required and soapUI Pro should pick it up when it starts. (check the soapui log output)

    regards,

    /Ole
    eviware.com
  • Miles's avatar
    Miles
    New Contributor
    Hi Ole,

    That's great for groovy logs. But how do you capture the TestCase Log output (the output one can see in the GUI and can manually output to file)?

    Cheers!

    Miles
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Miles,

    sorry, there is no logger for this currently.. but maybe there should be.. please add a feature request if you think so!

    regards,

    /Ole
    eviware.com