Score:0

Disable system property logging in Jmeter

es flag

I am running Jmeter using java -jar jmeter.jar ... command and passing a bunch of system properties using -D option. I see that the system properties are being printed in the jmeter log file. I want to avoid that. Is it possible to suppress printing these system properties in Jmeter? I want to avoid printing these because I am passing API key to the Jmeter file.

Sample jmeter.log file contents:

2022-05-09 10:00:00,213 INFO o.a.j.JMeter: Setting System property: API_KEY=API_KEY
Score:1
cn flag

If you like command-line arguments you can set the logging level for JMeter class to something less verbose via -L command-line option:

java -jar jmeter.jar -Lorg.apache.jmeter.JMeter=WARN

In order to make change permanent and won't have to set the above override each time you launch JMeter add the next line to log4j2.xml file (lives in "bin" folder of your JMeter installation:

<Logger name="org.apache.jmeter.JMeter" level="warn" />

More information:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.