How do you display variable Text in a log message?

Ask general questions here.
dochoa
Posts: 29
Joined: Tue Jul 16, 2013 11:36 pm

How do you display variable Text in a log message?

Post by dochoa » Wed Aug 24, 2016 6:45 am

My code shows:

Report.Log(ReportLevel.Info, "Invoke Action", "Invoking EnsureVisible() on item CrumbRepo.InText,"

And the report shows:

Invoking EnsureVisible() on item CrumbRepo.InText.

But what I want to show is the text bound to the module variable $InText.

How do you do this? How do you display a variable value in the text of a log message?

Thank you

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How do you display variable Text in a log message?

Post by Support Team » Thu Aug 25, 2016 11:45 am

Hi dochoa,

In the code sample below, the value of the module variable 'TestVariable' will be logged to the report.

Code: Select all

Report.Log(ReportLevel.Info, "User", "Variable value: "+TestVariable);
If you need further assistance, please do let me know.

Sincerely,
Johannes
.
Image