LogMessage

LogMessage is an activity that writes a message to the log. For each app, there is a log file. You can view the logs in the Log tab. The log messages generated are independent of the engine log level. It is also independent of the log level set by the PAPI logger or overridden using the environment variables.

Settings

The Settings tab has the following fields.

Field Description
Log Level Select one of the following log levels:
  • Info: logs informational messages highlighting the app progress.
  • Warning: is the warning message of an unexpected error when running the flow.
  • Error: logs error conditions and messages.
  • Debug: can be used for debug-level messages.
Add Flow Details Appends Flow Instance ID, Flow Name, and Activity Name to the Log Message.

By default, this field is set to False.

Input

Provide the following input for this Activity.

Input Item Description
message

The message to be displayed in the log.

logLevel

The logLevel to be set for an Activity.

Valid Values: INFO, DEBUG, ERROR, WARN

While mapping,

  • You can bind the log level from the App Properties or the App level schema.
  • If you enter any value other than the values that are available in the settings level, you get an error as 'Invalid Log Level'.
  • The log level value set in mapper level takes precedence over the log level value set in settings level.

 

Loop

For information on the Loop tab, see Using the Loop Feature in an Activity.