Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.integration.ant.util » [javadoc | source]
org.apache.cactus.integration.ant.util
public final class: AntLog [javadoc | source]
java.lang.Object
   org.apache.cactus.integration.ant.util.AntLog

All Implemented Interfaces:
    Log

Support class that lets classes log to Ant using the Commons Logging API. This is not intended to be a general solution, rather as a thin separation layer to not have to pass around full-blown Ant Project, Target or Task objects just to enable logging. Note that as there is no log level in Commons-Logging that corresponds to Ant's VERBOSE level (the level between INFO and DEBUG), the TRACE level of Commons-Logging gets mapped to VERBOSE, which is probably inappropriate for components that do not know they are using the AntLog class.
Field Summary
public static final  Log NULL    Singleton log implementation that simply ignores all log requests. 
Constructor:
 public AntLog(Task theTask) 
    Constructor.
    Parameters:
    theTask - The Ant task
 public AntLog(Target theTarget) 
    Constructor.
    Parameters:
    theTarget - The current target
 public AntLog(Project theProject) 
    Constructor.
    Parameters:
    theProject - The Ant project
Method from org.apache.cactus.integration.ant.util.AntLog Summary:
debug,   debug,   error,   error,   fatal,   fatal,   info,   info,   isDebugEnabled,   isErrorEnabled,   isFatalEnabled,   isInfoEnabled,   isTraceEnabled,   isWarnEnabled,   trace,   trace,   warn,   warn
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.integration.ant.util.AntLog Detail:
 public  void debug(Object theMessage) 
 public  void debug(Object theMessage,
    Throwable theThrowable) 
 public  void error(Object theMessage) 
 public  void error(Object theMessage,
    Throwable theThrowable) 
 public  void fatal(Object theMessage) 
 public  void fatal(Object theMessage,
    Throwable theThrowable) 
 public  void info(Object theMessage) 
 public  void info(Object theMessage,
    Throwable theThrowable) 
 public boolean isDebugEnabled() 
 public boolean isErrorEnabled() 
 public boolean isFatalEnabled() 
 public boolean isInfoEnabled() 
 public boolean isTraceEnabled() 
 public boolean isWarnEnabled() 
 public  void trace(Object theMessage) 
 public  void trace(Object theMessage,
    Throwable theThrowable) 
 public  void warn(Object theMessage) 
 public  void warn(Object theMessage,
    Throwable theThrowable)