Class Logging


  • public class Logging
    extends java.lang.Object

    The main entry point for Gradle's logging system. Gradle routes all logging via SLF4J. You can use either an SLF4J Logger or a Gradle Logger to perform logging.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Marker LIFECYCLE  
      static org.slf4j.Marker QUIET  
    • Constructor Summary

      Constructors 
      Constructor Description
      Logging()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Logger getLogger​(java.lang.Class c)
      Returns the logger for the given class.
      static Logger getLogger​(java.lang.String name)
      Returns the logger with the given name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LIFECYCLE

        public static final org.slf4j.Marker LIFECYCLE
      • QUIET

        public static final org.slf4j.Marker QUIET
    • Constructor Detail

      • Logging

        public Logging()
    • 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.