David
David

Reputation: 583

Jmeter version 5.5 not storing debug logs in jtl file

When I set the log level in UI to debug/trace, the jtl file is still storing the data with only info logs but showing the debug logs in UI. I even modified the log4j2 configuration file and tried the below

jmeter -Lorg.apache.jmeter.protocol.http.control=DEBUG
jmeter -Lorg.apache.http=DEBUG
jmeter -LDEBUG

This also is not storing the debug logs, I'm simply trying to get the request/response parameters completely stored for every single request that we are making in our test plan. What am I missing? Anyone can help me with this?

Upvotes: 0

Views: 140

Answers (1)

Dmitri T
Dmitri T

Reputation: 167992

Your configuration increases JMeter logging verbosity so jmeter.log file has more details comparing to default configuration

If you want to save request and response details there are 2 options:

  1. Amend JMeter's Results File Configuration to look like:

    jmeter.save.saveservice.output_format=xml
    jmeter.save.saveservice.response_data=true
    jmeter.save.saveservice.samplerData=true
    jmeter.save.saveservice.requestHeaders=true
    jmeter.save.saveservice.responseHeaders=true
    jmeter.save.saveservice.url=true
    
  2. Or add a listener like Simple Data Writer and choose what and where to store

    enter image description here

More information: How to Save Response Data in JMeter

Upvotes: 0

Related Questions