com.monad.homerun.log
Interface LogHandler


public interface LogHandler

LogHandler is the interface that all logging handlers - the ultimate consumers of logging data - must implement. Implementations of this interface are usually containers for a java.util.logging.Handler object, exposing methods to initialize, shutdown, and perform scheduled service on the underlying Handler


Method Summary
 void addObserver(java.util.Observer observer)
          Adds a log observer
 java.util.logging.Handler getHandler()
          Retrieves the log handler object
 void init(java.util.Properties props)
          Initializes the log handler
 void setPolicy(java.util.Properties props)
          Applies a management policy to the handler
 void shutdown()
          Shuts down the log handler
 

Method Detail

init

void init(java.util.Properties props)
Initializes the log handler

Parameters:
props - handler properties

setPolicy

void setPolicy(java.util.Properties props)
Applies a management policy to the handler

Parameters:
props - management properties

addObserver

void addObserver(java.util.Observer observer)
Adds a log observer

Parameters:
observer - the observer

getHandler

java.util.logging.Handler getHandler()
Retrieves the log handler object

Returns:
a log handler

shutdown

void shutdown()
Shuts down the log handler



Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.