Parameters
message |
any | Variable to debug |
Examples
Stores a message in the log file, with warning 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.
if (vars.recCount < 1) {
logWarning("Expected records"); // code executed
}
logInfo("Workflow done"); // code executedEnvironment: typo: screenshot
Enrivonment: JSSP: stacktrace?
Environment delivery: logs?
See also
-
📕 logVerbose- Store and display a message with Verbose level. Only if the server was started in verbose mode. -
📕 logInfo- Store and display a message with Info level. -
📕 logError- Store and display a message with Error level, and throws an Exception.