org.jlog2.channel
Class StdErrChannel

java.lang.Object
  extended by org.jlog2.channel.LogChannel
      extended by org.jlog2.channel.StdErrChannel

public class StdErrChannel
extends LogChannel

This class provides a channel to log messages to the system standard error stream.


Constructor Summary
StdErrChannel()
          Create a new instance of StdErrChannel.
 
Method Summary
protected  void createLogChannel()
          Create the file channel.
 void writeError(java.lang.String message)
          Write an exception to the error channel.
 void writeMessage(java.lang.String message)
          Write the message to the error channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdErrChannel

public StdErrChannel()
              throws java.lang.Exception
Create a new instance of StdErrChannel.

Throws:
java.lang.Exception - any error.
Method Detail

createLogChannel

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

Specified by:
createLogChannel in class LogChannel
Throws:
java.lang.Exception - any error.

writeMessage

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

Specified by:
writeMessage in class LogChannel
Parameters:
message - the message to write.
Throws:
java.lang.Exception - any error.

writeError

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

Specified by:
writeError in class LogChannel
Parameters:
message - the message to write.
Throws:
java.lang.Exception - any error.