kiwi.util
Interface LoggingEndpoint

All Known Implementing Classes:
FileLoggingEndpoint, NullLoggingEndpoint, RawLoggingEndpoint, ConsoleFrame

public abstract interface LoggingEndpoint

Logging endpoint interface. A logging endpoint accepts messages and writes them to a file, a graphical console window, or some other type of data sink.

Version:
1.0 (05/98)
Author:
Mark Lindner, PING Software Group

Field Summary
static int ERROR
          Error condition message type.
static int INFO
          Informational message type.
static int STATUS
          Status message type.
static int WARNING
          Warning message type.
 
Method Summary
 void close()
          Close the logging endpoint.
 void logMessage(int type, String message)
          Accept a new message.
 

Field Detail

INFO

public static final int INFO
Informational message type.

STATUS

public static final int STATUS
Status message type.

WARNING

public static final int WARNING
Warning message type.

ERROR

public static final int ERROR
Error condition message type.
Method Detail

logMessage

public void logMessage(int type,
                       String message)
Accept a new message. Writes the message to the data sink.
Parameters:
type - The message type; one of the static constants defined above.
message - The message.

close

public void close()
Close the logging endpoint. The logging endpoint is closed. Once a logging endpoint is closed, it cannot accept any more messages.