Working with log functions

In addition to the Write and WriteLine functions, you can also use the log functions.

These log functions write process-specific information to the log, in addition to the automatic logging information. The process-specific logging must be configured in the same way as for the automatic logging that is described above. This example demonstrates the usage of the log functions:

#define EngineVersion 5.0

void LoggingDemo(string message)
@Description: "Demonstrates logging functions.";
{
       LogError(message);
       LogWarning("Write a warning to repository log.");
       LogInformation("Write information to repository log.");
       LogDebug("Write debug information to repository log.");
}

Unlike the usage of Write and WriteLine functions, keep the log function calls in your processes when you publish them. This way, you can receive the log output also for published processes even in production environments. In general, provide a minimal set of logging in most processes. For example, it can be helpful to log the values of all parameters at the beginning of the process and the result values.