hub.eb?material_id=363&track_id=361

Server-side Logging


Statements can be logged by using log().

log("This is a log.");

Logs are written to the Verj.io Server Log. When running applications directly from the Verj.io Studio the log() function prints into the Designer Execution Log (View > Execution Log). Logs for applications running on a Verj.io Service Plan are visible via the Verj.io Cloud Portal.

Take care when writing logs, good logging can help you debug problems but overuse can make it difficult to see what's going on. 

Steps


1

Create a new Form and a Before Page script.

2

Inside the Before Page script add the following code:

var cost_price = 14.55;
var vat = cost_price * 0.2;
var total_price = cost_price + vat;
log("##### total price = " + total_price);

 

3

Run the form and view the Execution Log.

Note the total price is logged to the Execution Log.

Current Module

Related