groovy.util
Class GroovyLog

java.lang.Object
  extended bygroovy.lang.GroovyObjectSupport
      extended bygroovy.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: 1.1 $
Author:
James Strachan

Field Summary
(package private)  java.lang.String prefix
           
 
Fields inherited from class groovy.lang.GroovyObjectSupport
 
Constructor Summary
GroovyLog()
           
GroovyLog(java.lang.Class owner)
           
GroovyLog(java.lang.String prefix)
           
 
Method Summary
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
          Invokes the given method
static GroovyLog newInstance(java.lang.Class aClass)
          Factory method to create new instances
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, getProperty, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

java.lang.String prefix
Constructor Detail

GroovyLog

public GroovyLog()

GroovyLog

public GroovyLog(java.lang.Class owner)

GroovyLog

public GroovyLog(java.lang.String prefix)
Method Detail

newInstance

public static GroovyLog newInstance(java.lang.Class aClass)
Factory method to create new instances


invokeMethod

public java.lang.Object invokeMethod(java.lang.String name,
                                     java.lang.Object args)
Description copied from interface: GroovyObject
Invokes the given method

Specified by:
invokeMethod in interface GroovyObject
Overrides:
invokeMethod in class GroovyObjectSupport


Copyright © 2003-2005 The Codehaus. All Rights Reserved.