org.apache.jmeter.functions
Class LogFunction2
- Function
public class LogFunction2
Function to log a message.
Parameters:
- string value
- log level (optional; defaults to INFO; or DEBUG if unrecognised; or can use OUT or ERR)
- throwable message (optional)
Returns: - Empty String (so can be used where return value would be a nuisance)
String | execute(SampleResult previousResult, Sampler currentSampler) -
N.B. setParameters() and execute() are called from different threads,
so both must be synchronized unless there are no parameters to save
|
List | getArgumentDesc() - Return a list of strings briefly describing each parameter your function
takes.
|
String | getReferenceKey()
|
void | setParameters(Collection parameters) -
N.B. setParameters() and execute() are called from different threads,
so both must be synchronized unless there are no parameters to save
|
LogFunction2
public LogFunction2()
getArgumentDesc
public List getArgumentDesc()
Return a list of strings briefly describing each parameter your function
takes. Please use JMeterUtils.getResString(resource_name) to grab a
resource string. Otherwise, your help text will be difficult to
internationalize.
This list is not optional. If you don't wish to write help, you must at
least return a List containing the correct number of blank strings, one
for each argument.
- getArgumentDesc in interface Function
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.