com.devsphere.logging
Class AbstractLogger

java.lang.Object
  |
  +--com.devsphere.logging.AbstractLogger
Direct Known Subclasses:
CompoundLogger, PrintLogger, ServletLogger

public abstract class AbstractLogger
extends java.lang.Object

Abstract class whose methods are implemented by logging mechanisms.

See Also:
CompoundLogger, PrintLogger, ServletLogger

Constructor Summary
AbstractLogger()
           
 
Method Summary
abstract  void close()
          Closes this logger and releases any associated resources.
abstract  void flush()
          Flushes this logger and forces any buffered output characters to be written out.
abstract  void log(java.lang.String message)
          Logs a message.
abstract  void log(java.lang.String message, java.lang.Throwable throwable)
          Logs a message and an exception.
abstract  void log(java.lang.Throwable throwable)
          Logs an exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLogger

public AbstractLogger()
Method Detail

log

public abstract void log(java.lang.String message)
Logs a message.
Parameters:
message - the message that has to be logged.

log

public abstract void log(java.lang.Throwable throwable)
Logs an exception.
Parameters:
throwable - the exception that has to be logged.

log

public abstract void log(java.lang.String message,
                         java.lang.Throwable throwable)
Logs a message and an exception.
Parameters:
message - the message that has to be logged.
throwable - the exception that has to be logged.

flush

public abstract void flush()
Flushes this logger and forces any buffered output characters to be written out.

close

public abstract void close()
Closes this logger and releases any associated resources.