kiwi.ui
Class ConsoleAdapter

java.lang.Object
  |
  +--kiwi.ui.ConsoleAdapter

public class ConsoleAdapter
extends Object

Adapter for using a logging endpoint with the standard output stream. This class allows an arbitrary logging endpoint to be connected (via an OutputLoop) to the standard output stream, System.out. The class starts a separate thread which reads messages from the pipe and writes them to the logging endpoint. Message severity is specified using a message prefix; "warning:", "status:", "info:", or "error:". The default severity is STATUS. For example:

System.out.println("info:Program started.");

will log the message "Program started." as an INFO message.

Version:
1.0 (05/98)
Author:
Mark Lindner, PING Software Group
See Also:
ConsoleFrame, OutputLoop

Constructor Summary
ConsoleAdapter(LoggingEndpoint log)
          Construct a new ConsoleAdapter for the specified logging endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleAdapter

public ConsoleAdapter(LoggingEndpoint log)
               throws IOException
Construct a new ConsoleAdapter for the specified logging endpoint.
Parameters:
log - The LoggingEndpoint to use.
Throws:
IOException - If the output loop could not be created.