Interface LoggerMessageMethod
-
- All Superinterfaces:
AnnotatedConstruct,Comparable<MessageMethod>,DelegatingElement,DelegatingExecutableElement,Element,ExecutableElement,JavaDocComment,MessageMethod,Parameterizable
public interface LoggerMessageMethod extends MessageMethod
Represents a method which is annotated withLogMessage.- Author:
- James R. Perkins
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.logging.processor.model.MessageMethod
MessageMethod.Message
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringloggerMethod()Returns the log method to use.StringlogLevel()Returns the log level parameter associated with the method.default booleanwrapInEnabledCheck()Indicates whether or not the level should be checked before any logging, or an expensive operation, is done.-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.jboss.logging.processor.model.DelegatingElement
accept, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getEnclosedElements, getEnclosingElement, getKind, getModifiers, isAnnotatedWith
-
Methods inherited from interface org.jboss.logging.processor.model.DelegatingExecutableElement
asType, getDefaultValue, getDelegate, getParameters, getReceiverType, getReturnType, getSimpleName, getThrownTypes, getTypeParameters, isDefault, isVarArgs
-
Methods inherited from interface org.jboss.logging.processor.model.JavaDocComment
getComment
-
Methods inherited from interface org.jboss.logging.processor.model.MessageMethod
cause, formatParameterCount, hasCause, inheritsMessage, isOverloaded, message, messageMethodName, name, parameters, parametersAnnotatedWith, returnType, thrownTypes, translationKey
-
-
-
-
Method Detail
-
loggerMethod
String loggerMethod()
Returns the log method to use.- Returns:
- the log method to use
-
logLevel
String logLevel()
Returns the log level parameter associated with the method.- Returns:
- the enum name of the log level
-
wrapInEnabledCheck
default boolean wrapInEnabledCheck()
Indicates whether or not the level should be checked before any logging, or an expensive operation, is done.- Returns:
trueif the statement should be wrapped in anif (logger.isEnabled(level))block, otherwisefalse
-
-