Parameters
message |
any | Variable to debug |
Examples
Stores a message in the log file, with info level.
If executed in an environment of a workflow/delivery/typology, it also prints to the output.
Review logs location, levels, rotation & best practices in the Logs introduction.
var myString = "Hello " + "world";
logInfo(myString); // Hello world
var myInt = 42 + 8;
logInfo(myInt); // 50
// todo
//var myDate = new Date()
//var myArray = [abc, def]
//var myArray = [Hello, World].joinSee also
-
📕 logVerbose- Store and display a message with Verbose level. Only if the server was started in verbose mode. -
📕 logWarning- Store and display a message with Warning level. -
📕 logError- Store and display a message with Error level, and throws an Exception.