JMeter __logn function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values.
Also documented in context in the full Functions and Variables reference.
The logn function logs a message, and returns the empty string
| Name | Required | Description |
|---|---|---|
| String to be logged | Yes | A string |
| Log Level | No | OUT, ERR, DEBUG, INFO (default), WARN or ERROR |
| Throwable text | No | If non-empty, creates a Throwable to pass to the logger |
The OUT and ERR log level names are used to direct the output to System.out and System.err respectively.
In this case, the output is always printed - it does not depend on the current log setting.
For example:
\$\{__logn(VAR1=\$\{VAR1\},OUT)\}
: write the value of the variable to the console window