Adding Custom Run-Time Entries to JMeter Log

When test is running I want to add some entries to JMeter Log:

 import org.apache.jorphan.logging.LoggingManager;  
 import org.apache.log.Logger;  
 Logger LOG = LoggingManager.getLoggerFor("My Tag");  
 LOG.info("My message");  

This would generate the following entries on JMeter console:

...
2016/01/27 18:25:06 INFO - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1
2016/01/27 18:25:06 INFO - My Tag: My message
2016/01/27 18:25:06 INFO - jmeter.threads.JMeterThread: Thread is done: Thread Group 1-1
...

Advertisements
Adding Custom Run-Time Entries to JMeter Log

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s