de.stueckseln.buildtools.utils
Class TaskLogger
java.lang.Object
de.stueckseln.buildtools.utils.TaskLogger
- All Implemented Interfaces:
- Logger
public class TaskLogger
- extends java.lang.Object
- implements Logger
Logger implementation for Ant-Tasks. Uses the log() methods of a task
- Author:
- Thomas Lehmann
Constructor Summary |
TaskLogger(org.apache.tools.ant.Task task)
Initialize Logger with supplied task |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logLevel
protected int logLevel
TaskLogger
public TaskLogger(org.apache.tools.ant.Task task)
- Initialize Logger with supplied task
- Parameters:
task
- to bind to this logger.
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
log
protected void log(java.lang.String str,
int level)
debug
public final Logger debug(java.lang.String str)
- Specified by:
debug
in interface Logger
error
public final Logger error(java.lang.String str)
- Specified by:
error
in interface Logger
fatal
public final Logger fatal(java.lang.String str)
- Specified by:
fatal
in interface Logger
info
public final Logger info(java.lang.String str)
- Specified by:
info
in interface Logger
warning
public final Logger warning(java.lang.String str)
- Specified by:
warning
in interface Logger
setLogLevel
public final Logger setLogLevel(int level)
- Specified by:
setLogLevel
in interface Logger
getLogLevel
public int getLogLevel()
- Specified by:
getLogLevel
in interface Logger
setOutputStream
public Logger setOutputStream(java.io.OutputStream os)
- This setter is not used here
- Specified by:
setOutputStream
in interface Logger
getOutputStream
public java.io.OutputStream getOutputStream()
- This getter is not used here and returnes null