trace, debug, info, warn, error, fatal
)? - defaut is info
com.mycompany.app
). Default is to use com.opensymphony.xwork2.interceptor.TimerInterceptor
.invokeUnderTiming
method. <!-- records only the action's execution time --> <action name="someAction" class="com.examples.SomeAction"> <interceptor-ref name="completeStack"/> <interceptor-ref name="timer"/> <result name="success">good_result.ftl</result> </action> <!-- records action's execution time as well as other interceptors--> <action name="someAction" class="com.examples.SomeAction"> <interceptor-ref name="timer"/> <interceptor-ref name="completeStack"/> <result name="success">good_result.ftl</result> </action>This second example uses our own log category at debug level.
<!-- records only the action's execution time --> <action name="someAction" class="com.examples.SomeAction"> <interceptor-ref name="completeStack"/> <interceptor-ref name="timer"> <param name="logLevel">debug</param> <param name="logCategory">com.mycompany.myapp.actiontime</param> <interceptor-ref/> <result name="success">good_result.ftl</result> </action> <!-- records action's execution time as well as other interceptors--> <action name="someAction" class="com.examples.SomeAction"> <interceptor-ref name="timer"/> <interceptor-ref name="completeStack"/> <result name="success">good_result.ftl</result> </action>@author Jason Carreira @author Claus Ibsen
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|