Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::logging::AcsLoggingHandler Class Reference

Collaboration diagram for alma::acs::logging::AcsLoggingHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AcsLoggingHandler (DispatchingLogQueue logQueue, LogConfig logConfig, String loggerName)
void configureLogging (LogConfig logConfig)
void publish (LogRecord logRecord)
void flush ()
void close ()

Static Protected Member Functions

void debug ()

Private Attributes

DispatchingLogQueue logQueue
LogConfig logConfig
String loggerName
AcsLogLevelDefinition immediateDispatchLevel
boolean isClosed

Static Private Attributes

boolean DEBUG = Boolean.getBoolean("alma.acs.logging.verbose")

Detailed Description

The logging handler used by ACS for remote logging. All log records are immediately fed to a alma.acs.logging.DispatchingLogQueue.


Constructor & Destructor Documentation

alma::acs::logging::AcsLoggingHandler::AcsLoggingHandler DispatchingLogQueue  logQueue,
LogConfig  logConfig,
String  loggerName
[inline]
 


Member Function Documentation

void alma::acs::logging::AcsLoggingHandler::close  )  [inline]
 

Required method. Not sure if it's useful for us.

See also:
java.util.logging.Handler#close() Cleans handler up before exiting.

void alma::acs::logging::AcsLoggingHandler::configureLogging LogConfig  logConfig  )  [inline]
 

Called whenever the logging configuration is updated, for example when the CDB is read.

See also:
alma.acs.logging.config.LogConfigSubscriber::configureLogging(alma.acs.logging.config.LogConfig)

void alma::acs::logging::AcsLoggingHandler::debug  )  [inline, static, protected]
 

Used in the test. Sets debug to true.

void alma::acs::logging::AcsLoggingHandler::flush  )  [inline]
 

Forwards the flush request to the underlying queue.

See also:
java.util.logging.Handler#flush()

void alma::acs::logging::AcsLoggingHandler::publish LogRecord  logRecord  )  [inline]
 

See also:
java.util.logging.Handler#publish(java.util.logging.LogRecord) Writes a single log into an array of strings.
Parameters:
logRecord 


Member Data Documentation

boolean alma::acs::logging::AcsLoggingHandler::DEBUG = Boolean.getBoolean("alma.acs.logging.verbose") [static, private]
 

Variable to enable messages. TODO: check if this flag should be integrated with LogConfig classes

AcsLogLevelDefinition alma::acs::logging::AcsLoggingHandler::immediateDispatchLevel [private]
 

boolean alma::acs::logging::AcsLoggingHandler::isClosed [private]
 

LogConfig alma::acs::logging::AcsLoggingHandler::logConfig [private]
 

String alma::acs::logging::AcsLoggingHandler::loggerName [private]
 

DispatchingLogQueue alma::acs::logging::AcsLoggingHandler::logQueue [private]
 

The queue that this handler puts all log records in.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:38 2009 for ACS Java API by doxygen 1.3.8