# Class Logging

java.lang.Object
org.gradle.api.logging.Logging

public class Logging extends 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.

Since:
  0.7

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final org.slf4j.Marker`
  `LIFECYCLE`
  Returns the detached marker.
  `static final org.slf4j.Marker`
  `QUIET`
  Returns the detached marker.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Logging()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Logger`
  `getLogger(Class c)`
  Returns the logger for the given class.
  `static Logger`
  `getLogger(String name)`
  Returns the logger with the given name.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### LIFECYCLE

    public static final org.slf4j.Marker LIFECYCLE
    Returns the detached marker.
    Since:
      0.7

  - ### QUIET

    public static final org.slf4j.Marker QUIET
    Returns the detached marker.
    Since:
      0.7

- ## Constructor Details

  - ### Logging

    public Logging()

- ## Method Details

  - ### getLogger

    public static Logger getLogger(Class c)
    Returns the logger for the given class.
    Parameters:
      `c` - the class.
    Returns:
      the logger. Never returns null.
    Since:
      0.8

  - ### getLogger

    public static Logger getLogger(String name)
    Returns the logger with the given name.
    Parameters:
      `name` - the logger name.
    Returns:
      the logger. Never returns null.
    Since:
      0.8