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 on the Log tab. The Log Messages generated are independent of the engine log level. It is also independent of log level set by 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.

Note: If the message is left blank when you export the app and import it back again, "" are added to the app's json file automatically.
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 settings level, You get an error as 'Invalid Log Level'.
  • The log level value set in mapper level takes the precedence over the log level value set in settings level.

 

Loop

Refer to the section on "Using the Loop Feature in an Activity" in the TIBCO Flogo® Enterprise User Guide for information on the Loop tab.