You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Logger Interceptor

This interceptor logs the the start and end of the execution of the current Action.

Parameters

There are no parameters for this interceptor.

Extending the Interceptor

Describe possible extensions to the existing interceptor.

Examples

Given an Action, SomeAction, add a reference to the Logger interceptor.

<action name="SomeAction" class="com.examples.SomeAction">
   <interceptor-ref name="logger"/>
   <result name="success" type="freemarker">good_result.ftl</result>
</action>

At the start and end of the execution of SomeAction, the events will be logged.

  • No labels