|
ColdBox Platform v3.8.0
|
FRAMES
|
coldbox.system.aop.aspects
Class
MethodLogger
WEB-INF.cftags.component
coldbox.system.aop.aspects.MethodLogger
- All Implemented Interfaces:
-
MethodInterceptor
-
public class MethodLogger
- extends WEB-INF.cftags.component
A simple interceptor that logs method calls and their results
Property Summary
|
Type
|
Property & Description
|
Default
|
Serializable
|
Required
|
any
|
log
Attributes:
- inject = logbox:logger:{this}
|
|
true
|
false
|
Constructor Summary |
init([boolean logResults='true'])
Constructor
|
Methods inherited from class WEB-INF.cftags.component |
None
|
init
public init([boolean logResults='true'])
-
Constructor
- Parameters:
logResults
- Do we log results or not?
log
any log
-
- Attributes:
inject
- logbox:logger:{this}
required
- false
serializable
- true
default
-
invokeMethod
public any invokeMethod(any<MethodInvocation> invocation)
-
Invoke an AOP method invocation
- Specified by:
-
invokeMethod
in interface
MethodInterceptor
- Parameters:
invocation
- The method invocation object: coldbox.system.aop.MethodInvocation
|
ColdBox Platform v3.8.0
|
FRAMES
|