Whenever I ran the test logs are not displayed in log viewer panel in application, logs are displayed 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 logviewer check box also.

2 Answers 2


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"));

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 and acknowledge you have read our privacy policy.

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