opaciga
2 years agoNew Contributor
Setting log level in ReadyAPI and TestRunner
Is there an official way to change the log level when running tests with ReadyAPI and TestRunner? The ReadyAPI docs on groovy scripts only mention using `log.info` to write output from scripts. I...
- 2 years ago
Hello opaciga
Is this what you are attempting?
import org.apache.log4j.Level; import org.apache.log4j.Logger; lvl = log.getLevel(); log.info "lvl=$lvl"; log.setLevel(org.apache.logging.log4j.Level.DEBUG); lvl = log.getLevel(); log.debug "lvl=$lvl";
Regards,
Todd