org.apache.commons.jelly.tags.log
Class LogTagSupport

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.log.LogTagSupport
All Implemented Interfaces:
Tag
Direct Known Subclasses:
DebugTag, ErrorTag, FatalTag, InfoTag, TraceTag, WarnTag

public abstract class LogTagSupport
extends TagSupport

An abstract base class for any logging tag..

Version:
$Revision: 1.6 $
Author:
James Strachan

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
LogTagSupport()
           
 
Method Summary
 org.apache.commons.logging.Log getLog()
           
 void setLog(org.apache.commons.logging.Log log)
          Sets the Log instance to use for logging.
 void setName(java.lang.String name)
          Sets the name of the logger to use
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jelly.Tag
doTag
 

Constructor Detail

LogTagSupport

public LogTagSupport()
Method Detail

getLog

public org.apache.commons.logging.Log getLog()
Returns:
the Log being used by this tag. If none is returned then a new one will be created.

setName

public void setName(java.lang.String name)
Sets the name of the logger to use

setLog

public void setLog(org.apache.commons.logging.Log log)
Sets the Log instance to use for logging.


Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.