Public Member Functions

alma.acs.logging.StdOutConsoleHandler Class Reference

Inheritance diagram for alma.acs.logging.StdOutConsoleHandler:
alma.acs.logging.config.LogConfigSubscriber

List of all members.

Public Member Functions

 StdOutConsoleHandler (LogConfig logConfig, String loggerName, LogThrottle logThrottle)
void configureLogging (LogConfig newLogConfig)
synchronized void publish (LogRecord record)
void close ()

Detailed Description

Copied over from ConsoleHandler, but using System.out instead of System.err.

Note that we can't inherit from ConsoleHandler and reset the output stream using setOutputStream(System.out), because this would yield a call to System.err.close().

Author:
hsommer created Jun 1, 2005 5:52:36 PM

Constructor & Destructor Documentation

alma.acs.logging.StdOutConsoleHandler.StdOutConsoleHandler ( LogConfig  logConfig,
String  loggerName,
LogThrottle  logThrottle 
)
Parameters:
logConfig to get configuration data from, and subscribe for future updates
loggerName 
logThrottle optional log throttle, may be null if not used.

References alma.acs.logging.config.LogConfig.addSubscriber(), and alma.acs.logging.StdOutConsoleHandler.configureLogging().


Member Function Documentation

void alma.acs.logging.StdOutConsoleHandler.close (  ) 

Override StreamHandler.close to do a flush but not to close the output stream. That is, we do not close System.err.

References alma.acs.logging.config.LogConfig.removeSubscriber().

synchronized void alma.acs.logging.StdOutConsoleHandler.publish ( LogRecord  record  ) 

Publish a LogRecord.

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

Parameters:
record description of the log event. A null record is silently ignored and is not published

References alma.acs.logging.LogThrottle.checkPublishLogRecordLocal().

Referenced by alma.acs.logging.StdOutConsoleHandler.configureLogging().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties