de.stueckseln.buildtools.utils
Class TaskLogger

java.lang.Object
  extended by 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

Field Summary
protected  int logLevel
           
 
Fields inherited from interface de.stueckseln.buildtools.utils.Logger
LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_FATAL, LOGLEVEL_INFO, LOGLEVEL_WARNING
 
Constructor Summary
TaskLogger(org.apache.tools.ant.Task task)
          Initialize Logger with supplied task
 
Method Summary
 Logger debug(java.lang.String str)
           
 boolean equals(java.lang.Object o)
           
 Logger error(java.lang.String str)
           
 Logger fatal(java.lang.String str)
           
 int getLogLevel()
           
 java.io.OutputStream getOutputStream()
          This getter is not used here and returnes null
 Logger info(java.lang.String str)
           
protected  void log(java.lang.String str, int level)
           
 Logger setLogLevel(int level)
           
 Logger setOutputStream(java.io.OutputStream os)
          This setter is not used here
 Logger warning(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logLevel

protected int logLevel
Constructor Detail

TaskLogger

public TaskLogger(org.apache.tools.ant.Task task)
Initialize Logger with supplied task

Parameters:
task - to bind to this logger.
Method Detail

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