kiwi.util
Class RawLoggingEndpoint

java.lang.Object
  extended bykiwi.util.RawLoggingEndpoint
All Implemented Interfaces:
LoggingEndpoint

public class RawLoggingEndpoint
extends java.lang.Object
implements LoggingEndpoint

An implementation of LoggingEndpoint for standard error.

Author:
Mark Lindner, PING Software Group

Field Summary
private static java.lang.String[] types
           
 
Fields inherited from interface kiwi.util.LoggingEndpoint
ERROR, INFO, STATUS, WARNING
 
Constructor Summary
RawLoggingEndpoint()
          Construct a new RawLoggingEndpoint.
 
Method Summary
 void close()
          Close the logging endpoint.
 void logMessage(int type, java.lang.String message)
          Write a message to standard error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

types

private static final java.lang.String[] types
Constructor Detail

RawLoggingEndpoint

public RawLoggingEndpoint()
Construct a new RawLoggingEndpoint.

Method Detail

logMessage

public void logMessage(int type,
                       java.lang.String message)
Write a message to standard error.

Specified by:
logMessage in interface LoggingEndpoint
Parameters:
type - The message type; one of the constants defined in LoggingEndpoint.
message - The message.

close

public void close()
Close the logging endpoint. This method is effectively a no-op, since it is usually undesirable to close the standard error stream.

Specified by:
close in interface LoggingEndpoint