groovy.util
Class GroovyLog
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.GroovyLog
- All Implemented Interfaces:
- GroovyObject
public class GroovyLog
- extends GroovyObjectSupport
Represents an arbitrary logging service. By default this outputs to
System.out though derivations of this class could log to Jakarta Commons Logging
or log4j or JDK 1.5 logging etc
- Version:
- $Revision: 7210 $
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyLog
public GroovyLog()
GroovyLog
public GroovyLog(Class type)
GroovyLog
public GroovyLog(Object obj)
GroovyLog
public GroovyLog(String prefix)
newInstance
public static GroovyLog newInstance(Class aClass)
- Factory method to create new instances
invokeMethod
public Object invokeMethod(String name,
Object args)
- Description copied from interface:
GroovyObject
- Invokes the given method.
- Specified by:
invokeMethod
in interface GroovyObject
- Overrides:
invokeMethod
in class GroovyObjectSupport
- Parameters:
name
- the name of the method to callargs
- the arguments to use for the method call
- Returns:
- the result of invoking the method