Groovy Documentation

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

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

public class Logging

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 Marker LIFECYCLE

static 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(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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 Marker LIFECYCLE


QUIET

public static final 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