snippet of code to use the output logs in ScriptRunner Adaptavist groovy scripts
ScriptRunner log.debug
/***********/
import
org.apache.log4j.Logger
import
org.apache.log4j.Level
def log = Logger.getLogger(
"com.scriptname"
)
log.setLevel(Level.DEBUG)
/***********/
//and then, for example to print the variable trem
log.debug
"trem=${trem}"
|
example :