log

package
v0.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2023 License: BSD-3-Clause Imports: 4 Imported by: 11

README


title: Log weight: 4615

Log

This activity allows you to write log messages.

Installation

Flogo Web

This activity comes out of the box with the Flogo Web UI

Flogo CLI

flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/log

Schema

Inputs and Outputs:

{
  "input":[
    {
      "name": "message",
      "type": "string",
      "value": ""
    },
    {
      "name": "flowInfo",
      "type": "boolean",
      "value": "false"
    },
    {
      "name": "addToFlow",
      "type": "boolean",
      "value": "false"
    }
  ],
  "output": [
    {
      "name": "message",
      "type": "string"
    }
  ]
}

Settings

Setting Required Description
message False The message to log
flowInfo False If set to true this will append the flow information to the log message
addToFlow False If set to true this will add the log message to the 'message' output of the activity and make it available in further activities
message False The message that was logged

Examples

The below example logs a message 'test message':

{
  "id": "log_3",
  "name": "Log Message",
  "description": "Simple Log Activity",
  "activity": {
    "ref": "github.com/TIBCOSoftware/flogo-contrib/activity/log",
    "input": {
      "message": "test message",
      "flowInfo": "false",
      "addToFlow": "true"
    }
  }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new AppActivity

Types

type LogActivity

type LogActivity struct {
	// contains filtered or unexported fields
}

LogActivity is an Activity that is used to log a message to the console inputs : {message, flowInfo} outputs: none

func (*LogActivity) Eval

func (a *LogActivity) Eval(context activity.Context) (done bool, err error)

Eval implements api.Activity.Eval - Logs the Message

func (*LogActivity) Metadata

func (a *LogActivity) Metadata() *activity.Metadata

Metadata returns the activity's metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL