Forum Discussion
SmartBear_Suppo
Alumni
14 years agoHi,
the post you are reffering to is pretty old and the code is changed since
use this code instead:
hope this helps
regards
nebojsa
SmartBear Software
the post you are reffering to is pretty old and the code is changed since
use this code instead:
def logArea = com.eviware.soapui.SoapUI.logMonitor
if( logArea != null )
{
def jlogList= logArea.getLogArea( "http log" );
if( jlogList !=null )
{
def model = jlogList.model
if( model.size > 0 )
{
def out = new java.io.PrintWriter( "myfile.log" )
for( c in 0..(model.size-1) )
out.println( model.getElementAt( c ))
out.close()
}
}
}
hope this helps
regards
nebojsa
SmartBear Software