Package org.glassfish.pfl.basic.logex
Interface WrapperGenerator.Extension
- All Known Implementing Classes:
WrapperGenerator.ExtensionBase
- Enclosing class:
WrapperGenerator
public static interface WrapperGenerator.Extension
Extension API available to override the default behavior of the
WrapperGenerator.
-
Method Summary
Modifier and TypeMethodDescriptiongetLoggerName
(Class<?> cls) Modify the default logger name if needed.Get a message id for this log.makeException
(String msg, Method method) Construct an exception from the message and the exception type.
-
Method Details
-
getLogId
Get a message id for this log.- Parameters:
method
- The method defining this log.- Returns:
- The message id.
-
makeException
Construct an exception from the message and the exception type. The method provides access to any additional annotations that may be needed.- Parameters:
msg
- The message to use in the exception.method
- The method creating the exception.
-
getLoggerName
Modify the default logger name if needed.- Parameters:
cls
- The standard logger name- Returns:
- A possibly updated logger name
-