public class LoggingCapabilitiesExtension
extends java.lang.Object
| Constructor and Description |
|---|
LoggingCapabilitiesExtension(org.gradle.api.artifacts.ConfigurationContainer configurations,
org.gradle.api.artifacts.dsl.DependencyHandler dependencies) |
| Modifier and Type | Method and Description |
|---|---|
void |
enforceLog4J2()
Selects
log4j-slf4j-impl as the Slf4J binding and makes sure all other supported logging frameworks end up in Log4J 2 as well. |
void |
enforceLog4J2(java.lang.String configurationName)
Selects
log4j-slf4j-impl as the Slf4J binding and makes sure all other supported logging frameworks end up in Log4J 2 as well for the resolution of the given configuration. |
void |
enforceLogback()
Selects logback as the Slf4J binding and makes sure all other supported logging frameworks end up in logback as well.
|
void |
enforceLogback(java.lang.String configurationName)
Selects logback as the Slf4J binding and makes sure all other supported logging frameworks end up in logback as well for the resolution of the given configuration.
|
void |
enforceSlf4JSimple()
Selects
slf4j-simple as the Slf4J binding and makes sure all other supported logging frameworks end up in it as well. |
void |
enforceSlf4JSimple(java.lang.String configurationName)
Selects
slf4j-simple as the Slf4J binding and makes sure all other supported logging frameworks end up in it as well for the resolution of the given configuration. |
void |
selectJCLImplementation(java.lang.Object dependencyNotation)
Selects the provided module as the commons-logging implementation to use.
|
void |
selectJCLImplementation(java.lang.String configurationName,
java.lang.Object dependencyNotation)
Selects the provided module as the commons-logging implementation to use for the resolution of the given configuration.
|
void |
selectJulDelegation(java.lang.Object dependencyNotation)
Selects the provided module as the java util logging delegation to use.
|
void |
selectJulDelegation(java.lang.String configurationName,
java.lang.Object dependencyNotation)
Selects the provided module as the java util logging delegation to use for the resolution of the given configuration.
|
void |
selectLog4J12Implementation(java.lang.Object dependencyNotation)
Selects the provided module as the Log4J 1.2 implementation to use.
|
void |
selectLog4J12Implementation(java.lang.String configurationName,
java.lang.Object dependencyNotation)
Selects the provided module as the Log4J 1.2 implementation to use for the resolution of the given configuration.
|
void |
selectSlf4JBinding(java.lang.Object dependencyNotation)
Selects the provided module as the Slf4J binding to use.
|
void |
selectSlf4JBinding(java.lang.String configurationName,
java.lang.Object dependencyNotation)
Selects the provided module as the Slf4J binding to use for the resolution of the given configuration.
|
void |
selectSlf4JLog4J2Interaction(java.lang.Object dependencyNotation)
Selects the provided module as the Slf4J / Log4J 2 interaction to use.
|
void |
selectSlf4JLog4J2Interaction(java.lang.String configurationName,
java.lang.Object dependencyNotation)
Selects the provided module as the Slf4J / Log4J 2 interaction to use for the resolution of the given configuration.
|
public LoggingCapabilitiesExtension(org.gradle.api.artifacts.ConfigurationContainer configurations,
org.gradle.api.artifacts.dsl.DependencyHandler dependencies)
public void selectSlf4JBinding(java.lang.Object dependencyNotation)
This also resolves all other potential conflicts with the passed in module in favor of it.
dependencyNotation - the Slf4J binding module as a dependency or group:name:version notationpublic void selectSlf4JBinding(java.lang.String configurationName,
java.lang.Object dependencyNotation)
This also resolves all other potential conflicts with the passed in module in favor of it.
configurationName - the configuration to be setupdependencyNotation - the Slf4J binding module as a dependency or group:name:version notationpublic void selectLog4J12Implementation(java.lang.Object dependencyNotation)
This also resolves all other potential conflicts with the passed in module in favor of it.
dependencyNotation - the Log4J 1.2 implementation module as a dependency or group:name:version notationpublic void selectLog4J12Implementation(java.lang.String configurationName,
java.lang.Object dependencyNotation)
This also resolves all other potential conflicts with the passed in module in favor of it.
configurationName - the configuration to be setupdependencyNotation - the Log4J 1.2 implementation module as a dependency or group:name:version notationpublic void selectJulDelegation(java.lang.Object dependencyNotation)
This also resolves all other potential conflicts with the passed in module in favor of it.
dependencyNotation - the JUL delegation module as a dependency or group:name:version notationpublic void selectJulDelegation(java.lang.String configurationName,
java.lang.Object dependencyNotation)
This also resolves all other potential conflicts with the passed in module in favor of it.
configurationName - the configuration to be setupdependencyNotation - the JUL delegation module as a dependency or group:name:version notationpublic void selectJCLImplementation(java.lang.Object dependencyNotation)
This also resolves all other potential conflicts with the passed in module in favor of it.
dependencyNotation - the commons-logging implementation module as a dependency or group:name:version notationpublic void selectJCLImplementation(java.lang.String configurationName,
java.lang.Object dependencyNotation)
This also resolves all other potential conflicts with the passed in module in favor of it.
configurationName - the configuration to be setupdependencyNotation - the commons-logging implementation module as a dependency or group:name:version notationpublic void selectSlf4JLog4J2Interaction(java.lang.Object dependencyNotation)
This also resolves all other potential conflicts with the passed in module in favor of it.
dependencyNotation - the Slf4J / Log4J 2 interaction module as a dependency or group:name:version notationpublic void selectSlf4JLog4J2Interaction(java.lang.String configurationName,
java.lang.Object dependencyNotation)
This also resolves all other potential conflicts with the passed in module in favor of it.
configurationName - the configuration to be setupdependencyNotation - the Slf4J / Log4J 2 interaction module as a dependency or group:name:version notationpublic void enforceLogback()
While having logback as a dependency is required for this to work, substitution is used for enforcing other selections that could cause missed events in logback because there are no conflicts.
For example, commons-logging and log4j-jcl will be substituted with jcl-over-slf4j.
public void enforceLogback(java.lang.String configurationName)
While having logback as a dependency is required for this to work, substitution is used for enforcing other selections that could cause missed events in logback because there are no conflicts.
For example, commons-logging and log4j-jcl will be substituted with jcl-over-slf4j.
configurationName - the configuration to be setuppublic void enforceSlf4JSimple()
slf4j-simple as the Slf4J binding and makes sure all other supported logging frameworks end up in it as well.
While having slf4j-simple as a dependency is required for this to work, substitution is used for enforcing other selections that could cause missed events in slf4j-simple because there are no conflicts.
For example, commons-logging and log4j-jcl will be substituted with jcl-over-slf4j.
public void enforceSlf4JSimple(java.lang.String configurationName)
slf4j-simple as the Slf4J binding and makes sure all other supported logging frameworks end up in it as well for the resolution of the given configuration.
While having slf4j-simple as a dependency is required for this to work, substitution is used for enforcing other selections that could cause missed events in slf4j-simple because there are no conflicts.
For example, commons-logging and log4j-jcl will be substituted with jcl-over-slf4j.
configurationName - the configuration to be setuppublic void enforceLog4J2()
log4j-slf4j-impl as the Slf4J binding and makes sure all other supported logging frameworks end up in Log4J 2 as well.
While having log4j-slf4j-impl as a dependency is required for this to work, substitution is used for enforcing other selections that could cause missed events in Log4J 2 because there are no conflicts.
For example, commons-logging and log4j will be configured to end up in Log4J 2 as well.
public void enforceLog4J2(java.lang.String configurationName)
log4j-slf4j-impl as the Slf4J binding and makes sure all other supported logging frameworks end up in Log4J 2 as well for the resolution of the given configuration.
While having log4j-slf4j-impl as a dependency is required for this to work, substitution is used for enforcing other selections that could cause missed events in Log4J 2 because there are no conflicts.
For example, commons-logging and log4j will be configured to end up in Log4J 2 as well.
configurationName - the configuration to be setup