Spatial DataBlade
JAVA API v8.21

com.ibm.spatial.util
Interface LogHandler

All Known Implementing Classes:
HandlerImpl

public interface LogHandler

Handles log messages.

Note: This interface is used internally, to ensure logging functionality for API code running on JRE versions prior to 1.4. In a future version, this implementation will probably be deprecated. Instead, the "java.util.logging" package (defined in J2SE 1.4) will be used.

A LogHandler formats and writes log messages to a java.io.Writer object.

Note: A future version will favor the usage of the "java.util.logging" J2SE 1.4 package instead of this implementation.

See Also:
Logger

Method Summary
 void close()
          Close the LogHandler and free all associated resources.
 void flush()
          Flush any buffered output.
 void write(com.ibm.spatial.util.LogRecord record)
          Write a LogRecord.
 

Method Detail

write

void write(com.ibm.spatial.util.LogRecord record)
Write a LogRecord.

The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.

The LogHandler is responsible for formatting the message.

Parameters:
record - description of the log event

flush

void flush()
Flush any buffered output.


close

void close()
Close the LogHandler and free all associated resources.

The close method will perform a flush and then close the LogHandler. After close has been called this LogHandler should no longer be used. Method calls may either be silently ignored or may throw runtime exceptions.


Spatial DataBlade
JAVA API v8.21


Licensed Materials - Property of IBM
Copyright IBM Corp. 2002, 2012 All Rights Reserved.