de.opsdesign.yax.log
Class AntLogger

java.lang.Object
  extended by de.opsdesign.yax.log.Logger
      extended by de.opsdesign.yax.log.AntLogger
All Implemented Interfaces:
LogListener

public class AntLogger
extends Logger


Constructor Summary
AntLogger(java.lang.Object yaxTask)
           
 
Method Summary
 YaxTask getYaxTask()
           
 boolean isAntLogger()
          Returns true, if implementing class logs for the ant task YaxTask.
 void log(java.lang.String message)
          Notifies all loggers (LogListeners) to log an INFO message.
 void log(java.lang.String message, int severity)
          Notifies all loggers (LogListeners) to log a message with a particular severity.
 void log(YaxEvent yaxEvent)
          Notifies all loggers (LogListeners) to log an elaborated message (for exceptions et al).
 void setYaxTask(YaxTask yaxTask)
           
 
Methods inherited from class de.opsdesign.yax.log.Logger
getLogMessage, getSeverityLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntLogger

public AntLogger(java.lang.Object yaxTask)
Method Detail

log

public void log(java.lang.String message)
Description copied from interface: LogListener
Notifies all loggers (LogListeners) to log an INFO message. This signature is for normal INFO messages. (The severity will be set to the default INFO).

Specified by:
log in interface LogListener
Overrides:
log in class Logger
Parameters:
message - message to log

log

public void log(java.lang.String message,
                int severity)
Description copied from interface: LogListener
Notifies all loggers (LogListeners) to log a message with a particular severity. This signature is deditated for messages with a severity other than INFO.

Specified by:
log in interface LogListener
Overrides:
log in class Logger
Parameters:
message - message to log
severity - log severity(Log.ERROR,-WARN,-INFO,-VERBOSE or -DEBUG)

log

public void log(YaxEvent yaxEvent)
Description copied from interface: LogListener
Notifies all loggers (LogListeners) to log an elaborated message (for exceptions et al). This signature is deditated especially for exceptions and events with elaborated log requirements.

Specified by:
log in interface LogListener
Overrides:
log in class Logger
Parameters:
yaxEvent - consist of all relevant event information (also complete information about message exception)

getYaxTask

public YaxTask getYaxTask()

setYaxTask

public void setYaxTask(YaxTask yaxTask)

isAntLogger

public boolean isAntLogger()
Description copied from interface: LogListener
Returns true, if implementing class logs for the ant task YaxTask.

When yax runs in Ant-mode, all yax will be redirected to ant.

Specified by:
isAntLogger in interface LogListener
Overrides:
isAntLogger in class Logger
Returns:
true, if the implementing class is an AntLogger, otherwise false.


Copyright © 2008 OPS Design GmbH. All Rights Reserved.