To configure an event handler, follow these steps.
To configure an event handler
Use the OnStart
, OnFinish
, or OnError
parameter to specify the name of a section in the configuration file that contains event handler settings for the corresponding event.
To run an event handler for all actions, set these parameters in the [Actions]
section. For example:
[Actions] OnStart=NormalEvents OnFinish=NormalEvents OnError=ErrorEvents
To run an event handler for specific actions, use the action name as a section in the configuration file. The following example runs an event handler when the Fetch action starts and finishes successfully:
[Fetch] OnStart=NormalEvents OnFinish=NormalEvents
OnStart
, OnFinish
, or OnError
parameter.In the new section, set the following parameters.
LibraryName
|
(Required) The name of the library to use as the event handler. You can write your own event handler, or use one of the internal event handlers:
|
For example:
[NormalEvents] LibraryName=TextFileHandler FilePath=./events.txt [ErrorEvents] LibraryName=LuaHandler LuaScript=./error.lua
|