Package org.jboss.weld.logging
Interface LogMessageCallback
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface LogMessageCallback
JBoss Logging is not using message keys and so it's not possible to reference the log message (a logger method annotated withLogMessage
andMessage
) and use it as a method parameter or construct it lazily. This callback should be used to work around this limitation. Note that the method parameters are not checked and so the invocation may result inArrayIndexOutOfBoundsException
.- Author:
- Martin Kouba
- See Also:
LogMessage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
log(Object... params)
Invokes the logger method.
-
-
-
Method Detail
-
log
void log(Object... params)
Invokes the logger method.- Parameters:
params
-
-
-