org.jlog2.channel
Class StdOutChannel

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

public class StdOutChannel
extends LogChannel

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


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

Constructor Detail

StdOutChannel

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

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 output 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 output channel.

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