Jmeter Log Settings---How to set the log of the jar being tested in the Java protocol?

Source: Internet
Author: User

First reprint the JMeter log settings:

JMeter run problems can be fixed by adjusting the JMeter log level, but it is recommended to close the JMeter log when you run the test, jmeter the print log consumes system performance.

The JMeter log is stored by default in the%jmeter_home%\bin directory, and the file name is usually JMeter.log. Logging information about the operation of the JMeter itself.

JMETER uses the log4j log component output log, Log_level.jmeter in%jmeter_home%\bin\jmeter.properties to control the JMETER logging level. Log_level.jmeter can set the following log levels: Fatal_error, ERROR, WARN, Info,debug, where fatal_error print logs are minimal and DEBUG level logs are most detailed.

Log_level.jmeter=info//info level, only is equal to and above this level of the print log, if configured as info displays only info, WARN, error log information, and debug information will not be displayed.

JMeter can set different log levels for different modules, as follows:

log_level.jmeter=infolog_level.jmeter.junit=debug#log_level.jmeter.control=debug#log_level.jmeter.testbeans= Debug#log_level.jmeter.engine=debug#log_level.jmeter.threads=debug#log_level.jmeter.gui=warn#log_ Level.jmeter.testelement=debug#log_level.jmeter.util=warn#log_level.jmeter.util.classfinder=warn#log_ level.jmeter.test=debug#log_level.jmeter.protocol.http=debug# for Cookiemanager, AuthManager etc: #log_ Level.jmeter.protocol.http.control=debug#log_level.jmeter.protocol.ftp=warn#log_level.jmeter.protocol.jdbc= Debug#log_level.jmeter.protocol.java=warn#log_level.jmeter.testelements.property=debuglog_level.jorphan=info

JMeter can also specify the test script and the log level of the jar package being tested, if I test the script path as follows: Com.ptest.Demo, the path of the jar being tested is as follows: COM.APP.DEMOAPP, the following settings can be implemented:

    

#指定脚本 com.ptest The log of all classes under package log_level.com.ptest=error# specifies that a class's log log_level.com.ptest.demo=error# specifies that COM be applied. Log of all classes under the app package
Log_level.com.ptest=error
#指定所有日志级别 including the JMeter itself, the script, the application under test
Log_level=error

Jmeter Log Settings---How to set the log of the jar being tested in the Java protocol?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.