Skip to main content

Log

The Log action prins a log message to the log output.

Inputs

  • message - a string (or function taking a context parameter) that returns the message to log.

Outputs

  • rendered_message - the message that was logged.

Example usage

local Workflow = require "porla.Workflow"
local Log = require "porla.actions.Log"

return Workflow:new{
on = "TorrentAdded",
actions = {
Log:new{
message = function(ctx)
return string.format("Torrent %s added", ctx.torrent.name)
end
}
}
}