| java.lang.Object org.apache.cactus.integration.ant.util.AntLog
AntLog | final public class AntLog implements Log(Code) | | 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.
version: $Id: AntLog.java 238812 2004-02-29 10:21:34Z vmassol $ |
Field Summary | |
final public static Log | NULL Singleton log implementation that simply ignores all log requests. |
Constructor Summary | |
public | AntLog(Task theTask) Constructor. | public | AntLog(Target theTarget) Constructor. | public | AntLog(Project theProject) Constructor. |
NULL | final public static Log NULL(Code) | | Singleton log implementation that simply ignores all log requests.
|
AntLog | public AntLog(Task theTask)(Code) | | Constructor.
Parameters: theTask - The Ant task |
AntLog | public AntLog(Target theTarget)(Code) | | Constructor.
Parameters: theTarget - The current target |
AntLog | public AntLog(Project theProject)(Code) | | Constructor.
Parameters: theProject - The Ant project |
debug | public void debug(Object theMessage)(Code) | | See Also: org.apache.commons.logging.Log.debug(Object) |
debug | public void debug(Object theMessage, Throwable theThrowable)(Code) | | See Also: org.apache.commons.logging.Log.debug(ObjectThrowable) |
error | public void error(Object theMessage)(Code) | | See Also: org.apache.commons.logging.Log.error(Object) |
error | public void error(Object theMessage, Throwable theThrowable)(Code) | | See Also: org.apache.commons.logging.Log.error(ObjectThrowable) |
fatal | public void fatal(Object theMessage)(Code) | | See Also: org.apache.commons.logging.Log.fatal(Object) |
fatal | public void fatal(Object theMessage, Throwable theThrowable)(Code) | | See Also: org.apache.commons.logging.Log.fatal(ObjectThrowable) |
info | public void info(Object theMessage)(Code) | | See Also: org.apache.commons.logging.Log.info(Object) |
info | public void info(Object theMessage, Throwable theThrowable)(Code) | | See Also: org.apache.commons.logging.Log.info(ObjectThrowable) |
isDebugEnabled | public boolean isDebugEnabled()(Code) | | See Also: org.apache.commons.logging.Log.isDebugEnabled |
isErrorEnabled | public boolean isErrorEnabled()(Code) | | See Also: org.apache.commons.logging.Log.isErrorEnabled |
isFatalEnabled | public boolean isFatalEnabled()(Code) | | See Also: org.apache.commons.logging.Log.isFatalEnabled |
isInfoEnabled | public boolean isInfoEnabled()(Code) | | See Also: org.apache.commons.logging.Log.isInfoEnabled |
isTraceEnabled | public boolean isTraceEnabled()(Code) | | See Also: org.apache.commons.logging.Log.isTraceEnabled |
isWarnEnabled | public boolean isWarnEnabled()(Code) | | See Also: org.apache.commons.logging.Log.isWarnEnabled |
trace | public void trace(Object theMessage)(Code) | | See Also: org.apache.commons.logging.Log.trace(Object) |
trace | public void trace(Object theMessage, Throwable theThrowable)(Code) | | See Also: org.apache.commons.logging.Log.trace(ObjectThrowable) |
warn | public void warn(Object theMessage)(Code) | | See Also: org.apache.commons.logging.Log.warn(Object) |
warn | public void warn(Object theMessage, Throwable theThrowable)(Code) | | See Also: org.apache.commons.logging.Log.warn(ObjectThrowable) |
|
|