Home > Guides > Core Developers Guide > Interceptors > Timer Interceptor |
This interceptor logs the amount of time in milliseconds. In order for this interceptor to work properly, the logging framework must be set to at least the INFO level. This interceptor relies on the Commons Logging API to report its execution-time value.
trace, debug, info, warn, error, fatal
)? - defaut is info
com.mycompany.app
).
Default is to use com.opensymphony.xwork2.interceptor.TimerInterceptor
.The parameters above enables us to log all action execution times in our own logfile.
This interceptor can be extended to provide custom message format. Users should override the
invokeUnderTiming
method.