I quickly wanted to get some lr_status message outputted to the console for every LoadRunner transaction in a script, I basically wanted to insert a status message every time the lr_start_transaction was called to output the transaction name to the console. however, it was a large script and I didn’t want to make any code changes to the load runner script. So I wanted to expand the existing function. The code below was added into the vinit section.
void my_start_transaction (char *name)
lr_vuser_status_message("Starting Transaction %s",name);
#define lr_start_transaction(x) my_start_transaction(x)