MaxonT opened a new pull request, #6882:
URL: https://github.com/apache/jmeter/pull/6882
Hello, I had a go at this one and the change is below.
## Description
The Logging section of `xdocs/usermanual/get-started.xml` now has a short
paragraph saying that the default `log4j2.xml` takes the log file name from the
`jmeter.logfile` system property, that logging is initialised before
`system.properties` (or a file given with `-S`) is loaded, and that setting
`jmeter.logfile` there therefore has no effect. It names the two ways that
work: the `-j` option, or `-Djmeter.logfile=...` in `JVM_ARGS` (for example in
`setenv.sh` or `setenv.bat`).
The loading order is already listed further down on the same page; this only
connects it to the log file name, which is where the issue reporter ran into
it. `bin/log4j2.xml` reads `${sys:jmeter.logfile:-jmeter.log}`, which I checked
in the checkout.
## Motivation and Context
Refs #5771. Thank you @FSchumacher for the explanation on the issue; the
paragraph follows your `JVM_ARGS` suggestion and adds `-j`, which the page
already describes. I did not change any code, so `-S` behaves as before.
## How Has This Been Tested?
I checked that the file is still well-formed XML after the edit (entities
such as `…` replaced by a placeholder for the check). I did not run the
Gradle documentation build or render the page, and I did not start JMeter to
try `-j` or `JVM_ARGS` myself; the statements rest on the loading order in the
manual and on `bin/log4j2.xml`.
## Types of changes
- Documentation only (non-breaking change)
## Checklist:
- [x] I have updated the documentation accordingly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]