Parameters
message |
any | Variable to debug |
Examples
Stores a message in the log file, with error level. Also throws an Exception and stops the execution.
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) {
logError("Expected records"); // throws and exits
}
logInfo("Workflow done"); // code not executed if vars.recCount > 0Environment: 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. -
📕 logWarning- Store and display a message with Warning level.