Log

Log is a synchronous activity that writes a message to the log file. For each AppNode and application, there is a log file.

General

The General tab has the following fields.

Field Description
Name The name to be displayed as the label for the activity in the process.
Logger Name The name of a logger used in the logback.xml file. The value for the Logger Name is case sensitive and can be a single name or a hierarchical name.
Log Level Select one of the following log levels recognized by the process engine.
  • Error: logs error conditions and messages.
  • Warning: is the warning message of an unexpected error in the process.
  • Info: logs informational messages highlighting the application/engine progress.
  • Debug: can be used for debug-level messages.
Suppress Job Info If selected, no additional information is added to the log entry.

If not selected, each log message appends JobId, ProcessInstanceId, Activity Name, Deployment Unit Name, and Version name to the message text.

Description

Provide a short description of the activity.

Input

The following is the input for the activity.

Input Iten Datatype Description
msgCode string The error code of the message. This is used as an identifier for the message so that applications can scan the log for the message.
loggerName string

The name of a logger used in the logback.xml file. The value for loggerName is case sensitive and can be a single name or a hierarchical name.

If you specify a value in the input schema, that value overrides the value specified for the Logger Name field on the General tab.

logLevel string Select one of the following log levels recognized by the process engine.
  • Error: logs error conditions and messages.
  • Warning: is the warning message of an unexpected error in the process.
  • Info: logs informational messages highlighting the application/engine progress.
  • Debug: can be used for debug-level messages.

If you specify a value in the input schema, that value overrides the value specified for the Log Level field on the General tab.

message string The message to be displayed in the log.
Note: If the message contains non-ASCII data, the default encoding of the Java Virtual Machine (JVM) used by the process engine, is used for text encoding, when writing to the log file.