Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.api.logging
[Java] Class Logging

    java.lang.Object
      org.gradle.api.logging.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 org.slf4j.Logger or a Gradle Logger to perform logging.

Authors:
  Hans Dockter

Field Summary
`static java.util.Map` | `ANT_IVY_2_SLF4J_LEVEL_MAPPER`
`static org.slf4j.Marker` | `LIFECYCLE`
`static org.slf4j.Marker` | `QUIET`

Method Summary
`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
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()

Field Detail

### ANT_IVY_2_SLF4J_LEVEL_MAPPER

    public static final java.util.Map ANT_IVY_2_SLF4J_LEVEL_MAPPER

### LIFECYCLE

    public static final org.slf4j.Marker LIFECYCLE

### QUIET

    public static final org.slf4j.Marker QUIET

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.

Groovy Documentation