0

whenever i ran the test logs are not displayed in log viewer panel in application ,logs are dispalyed in command prompt.Can anyone pls suggest for this issue how can i see logs in log viewer panel instead of cmd prompt i was enabled logviwer check box also

0

You may add JSR223 Sampler and write this code in Groovy:

println("Test message");

In that case you will see message in cmd console window.

If you want to print your message to JMeter Log Viewer use this code instead:

log.info("Test message:" + vars.get("yourVariableName"));
0

Most probably your JMeter Logging Configuration is corrupt, either try re-installing JMeter by downloading a "fresh" version or replace log4j2.xml file contents with the one from JMeter source repository

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.