Forum Discussion
omatzura
18 years agoSuper Contributor
Hi,
if you mean the log in the groovy-editor window, the answer is no.. there is no way to currently access that log.. but all the other logs at the bottom are available.. actually, you can even add your own from a script;
Then in subsequent teststeps/testcases you can log to this with
Since this is standard log4j stuff, you could add an SNMP appender for monitoring, JDBC appender for logging to database, etc..
regards!
/Ole
eviware.com
if you mean the log in the groovy-editor window, the answer is no.. there is no way to currently access that log.. but all the other logs at the bottom are available.. actually, you can even add your own from a script;
def logArea = com.eviware.soapui.SoapUI.logMonitor
if( logArea != null )
{
def ix = logArea.indexOfTab( "my log" );
def logPanel
if( ix == -1 )
{
logPanel = logArea.addLogArea( "My log", "my.log.category", false )
}
else
{
logPanel = logArea.getComponentAt( ix )
}
logPanel.addLine( "test" )
}
Then in subsequent teststeps/testcases you can log to this with
def mylog = org.apache.log4j.Logger.getLogger( "my.log.category" )
mylog.info( "testing.." )
Since this is standard log4j stuff, you could add an SNMP appender for monitoring, JDBC appender for logging to database, etc..
regards!
/Ole
eviware.com