org.jlog2.channel
Class LogChannel

java.lang.Object
  extended by org.jlog2.channel.LogChannel
Direct Known Subclasses:
FileChannel, StdErrChannel, StdOutChannel

public abstract class LogChannel
extends java.lang.Object

This abstract class provides descriptions of the methods that need to be implemented by a channel that can be used by a logger to log messages.


Constructor Summary
LogChannel()
           
 
Method Summary
protected abstract  void createLogChannel()
          Create the log channel.
abstract  void writeError(java.lang.String message)
          Write an exception to the log channel.
abstract  void writeMessage(java.lang.String message)
          Write the message to the log channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogChannel

public LogChannel()
Method Detail

createLogChannel

protected abstract void createLogChannel()
                                  throws java.lang.Exception
Create the log channel.

Throws:
java.lang.Exception - any error.

writeMessage

public abstract void writeMessage(java.lang.String message)
                           throws java.lang.Exception
Write the message to the log channel.

Parameters:
message - the message to write.
Throws:
java.lang.Exception - any error.

writeError

public abstract void writeError(java.lang.String message)
                         throws java.lang.Exception
Write an exception to the log channel.

Parameters:
message - the message to write.
Throws:
java.lang.Exception - any error.