0
votes

Hey All I have a question about Jmeter log. I usually use consul, and I want to try using log log.info("My message");

when the test run I press the yellow triangle in the up right section. and the log section appeared, the problem is it full with data that I do not need, so: 1. I take all the log 2. move it to notepad++ 3. search the data I want ("my message")

it takes a lot of time' can someone suggest a better way to search in the log itself? or just see exception and my printing? regards

enter image description here

2

2 Answers

0
votes

Just write your message to the separate file, in Groovy it would be as simple as:

new File('my.log') << 'my message'

Getting content of jmeter.log file into a String would be something like:

def jmeterLog = new File('jmeter.log').text

References:

0
votes

There is no way to search (as of JMeter 3.3) in console output.

The output reflect the content of bin/jmeter.log. So you can directly open this file with any editor and do the search there.