Package org.gradle.api.logging
Class Logging
- java.lang.Object
-
- org.gradle.api.logging.Logging
-
public class Logging extends java.lang.ObjectThe main entry point for Gradle's logging system. Gradle routes all logging via SLF4J. You can use either an SLF4J
Loggeror a GradleLoggerto perform logging.
-
-
Constructor Summary
Constructors Constructor Description Logging()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LoggergetLogger(java.lang.Class c)Returns the logger for the given class.static LoggergetLogger(java.lang.String name)Returns the logger with the given name.
-
-
-
Method Detail
-
getLogger
public static Logger getLogger(java.lang.Class c)
Returns the logger for the given class.- Parameters:
c- the class.- Returns:
- the logger. Never returns null.
-
getLogger
public static Logger getLogger(java.lang.String name)
Returns the logger with the given name.- Parameters:
name- the logger name.- Returns:
- the logger. Never returns null.
-
-