In ReadyAPI 2.3.0 I can't see any log output
- 7 years ago
bwennekeswrote:I was having similar problems and did some research to find out what could be the cause.
I found out with the code below (put it in a groovy step and run) that info was not enabled. Errors I did still see though.
def isInfoOn = log.isInfoEnabled()
log.error(isInfoOn)
So next I enabled the info logging and tried again:
import org.apache.log4j.Logger
import org.apache.log4j.Level
log.setLevel(Level.INFO)
log.info("hi")
That did work for me, but then I had to enable it every time, which was not much of a solution.
After some more digging I found the 'soapui-log4j.xml' in my bin folder inside the ReadyAPI folder. This is apparently where the level of logging is set for all different types. I set the logging level of root to INFO (at the bottom in my case) and that did the trick!
Thanks for that detailed response. I followed your instructions and the isInfoEnabled() function confirmed my logging was disabled. But my soapui-log4j.xml file was already set to INFO, so your permanent fix didn't apply to my situation.
It turns out, I was right about my prior hunch about the newly added jar file. There must be something in there that disables log4j, because I was able to delete the jar from my Program Files folder, and after restarting ReadyAPI my logging was enabled again. Thanks for letting me know about the isInfoEnabled() function, it really helped.