public class Slf4jCallerInfoExtension
extends java.lang.Object
| Constructor and Description |
|---|
Slf4jCallerInfoExtension() |
| Modifier and Type | Method and Description |
|---|---|
io.github.crustack.slf4j.callerinfo.ClassFilters |
getFilters()
Gets the regex filters to only inject into specific Java classes
|
java.util.List<java.lang.String> |
getInjectedMethods()
Gets custom injectedMethods list; null means use Task defaults
|
java.lang.String |
getInjection()
Gets the injected pattern, can include any conversion words ('%class','%line','%method')
|
java.lang.String |
getInjectionMdcParameter()
Gets the name of the used MDC parameter in the logging-pattern
|
boolean |
isEnabled()
Gets whether or not to the plugin is enabled
|
boolean |
isIncludePackageName()
Gets whether or not to print the package-name of the class, if '%class' is present in 'injection' parameter
|
boolean |
isRunAfterJavaCompile()
Gets whether or not to the
Slf4jInjectCallerInfoTask task is run after the JavaCompile task |
void |
setEnabled(boolean enabled)
Sets whether or not to the plugin is enabled
|
void |
setFilters(io.github.crustack.slf4j.callerinfo.ClassFilters filters)
Sets the regex filters to only inject into specific Java classes
|
void |
setIncludePackageName(boolean includePackageName)
Sets whether or not to print the package-name of the class, if '%class' is present in 'injection' parameter
|
void |
setInjectedMethods(java.util.List<java.lang.String> injectedMethods)
Sets custom injectedMethods list; null means use Task defaults
|
void |
setInjection(java.lang.String injection)
Sets the injected pattern, can include any conversion words ('%class','%line','%method')
|
void |
setInjectionMdcParameter(java.lang.String injectionMdcParameter)
Sets the name of the used MDC parameter in the logging-pattern
|
void |
setRunAfterJavaCompile(boolean runAfterJavaCompile)
Sets whether or not to the
Slf4jInjectCallerInfoTask task is run after the JavaCompile task |
public java.lang.String getInjection()
public void setInjection(java.lang.String injection)
public java.lang.String getInjectionMdcParameter()
public void setInjectionMdcParameter(java.lang.String injectionMdcParameter)
public boolean isIncludePackageName()
public void setIncludePackageName(boolean includePackageName)
public io.github.crustack.slf4j.callerinfo.ClassFilters getFilters()
public void setFilters(io.github.crustack.slf4j.callerinfo.ClassFilters filters)
public java.util.List<java.lang.String> getInjectedMethods()
public void setInjectedMethods(java.util.List<java.lang.String> injectedMethods)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public boolean isRunAfterJavaCompile()
Slf4jInjectCallerInfoTask task is run after the JavaCompile taskpublic void setRunAfterJavaCompile(boolean runAfterJavaCompile)
Slf4jInjectCallerInfoTask task is run after the JavaCompile task