Package org.silverpeas.core.util.logging
Class LogAnnotationProcessor
- java.lang.Object
-
- org.silverpeas.core.util.logging.LogAnnotationProcessor
-
@Interceptor @Log @Priority(2000) public class LogAnnotationProcessor extends Object
A processor oforg.silverpeas.core.util.logging.Log
annotations. Each time a method annotated with this annotation is invoked, this processor will produce a log record with as information the user behind the invocation and another log record at the method execution end with as additional information the time spent at the method execution.- Author:
- mmoquillon
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
SYSTEM_AFTER_PATTERN
protected static String
SYSTEM_BEFORE_PATTERN
protected static String
SYSTEM_DEFAULT_AFTER_PATTERN
protected static String
SYSTEM_DEFAULT_BEFORE_PATTERN
protected static String
USER_AFTER_PATTERN
protected static String
USER_BEFORE_PATTERN
protected static String
USER_DEFAULT_AFTER_PATTERN
protected static String
USER_DEFAULT_BEFORE_PATTERN
-
Constructor Summary
Constructors Constructor Description LogAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
produceLogRecords(javax.interceptor.InvocationContext context)
-
-
-
Field Detail
-
SYSTEM_DEFAULT_BEFORE_PATTERN
protected static final String SYSTEM_DEFAULT_BEFORE_PATTERN
- See Also:
- Constant Field Values
-
SYSTEM_DEFAULT_AFTER_PATTERN
protected static final String SYSTEM_DEFAULT_AFTER_PATTERN
- See Also:
- Constant Field Values
-
USER_DEFAULT_BEFORE_PATTERN
protected static final String USER_DEFAULT_BEFORE_PATTERN
- See Also:
- Constant Field Values
-
USER_DEFAULT_AFTER_PATTERN
protected static final String USER_DEFAULT_AFTER_PATTERN
- See Also:
- Constant Field Values
-
SYSTEM_BEFORE_PATTERN
protected static final String SYSTEM_BEFORE_PATTERN
- See Also:
- Constant Field Values
-
SYSTEM_AFTER_PATTERN
protected static final String SYSTEM_AFTER_PATTERN
- See Also:
- Constant Field Values
-
USER_BEFORE_PATTERN
protected static final String USER_BEFORE_PATTERN
- See Also:
- Constant Field Values
-
USER_AFTER_PATTERN
protected static final String USER_AFTER_PATTERN
- See Also:
- Constant Field Values
-
-