Name

action

Log Action — Action that outputs to a log file

<action class="xms.action.LogAction" />

Table 4. Attributes for action tag (for xms.action.LogAction)

NameDescriptionTypeDefault ValueRequired
eventThe event to fire this action onString any character combinationnoneyes
levelThe log level to log atLevel One of the following values: trace,debug,info,warn,errorwarnno
logExceptionsLogs an exception if presentboolean true or falsetrueno
nameThe logger nameString any character combinationnoneyes
templateFreemarker template for log messageTemplate Freemarker template stringnoneyes

Example 4. Example configuration for Log Action

Required attributes are marked with a bold typeface

<action class="xms.action.LogAction"
      event="event"
      level="level"
      logExceptions="logExceptions"
      name="name"
      template="template" />