All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aQute.libg.slf4j.GradleLogging Maven / Gradle / Ivy

The newest version!
package aQute.libg.slf4j;

import org.slf4j.Marker;

/**
 * SLF4J Markers for special Gradle log levels. These markers are to be used
 * with the info logging methods.
 */
public class GradleLogging {
	/**
	 * The Gradle LIFECYCLE marker.
	 */
	public final static Marker	LIFECYCLE;
	/**
	 * The Gradle QUIET marker.
	 */
	public final static Marker	QUIET;

	static {
		Marker lifecycle = null;
		Marker quiet = null;
		try {
			Class logging = Class.forName("org.gradle.api.logging.Logging");
			lifecycle = (Marker) logging.getField("LIFECYCLE")
				.get(null);
			quiet = (Marker) logging.getField("QUIET")
				.get(null);
		} catch (Exception e) {}
		LIFECYCLE = lifecycle;
		QUIET = quiet;
	}

	private GradleLogging() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy