alma::acs::logging::StdOutConsoleHandler Class Reference

Inheritance diagram for alma::acs::logging::StdOutConsoleHandler:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::StdOutConsoleHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

LogConfig logConfig
String loggerName

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 
) [inline]

Member Function Documentation

void alma::acs::logging::StdOutConsoleHandler::close (  )  [inline]

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

References logConfig, and alma::acs::logging::config::LogConfig::removeSubscriber().

void alma::acs::logging::StdOutConsoleHandler::configureLogging ( LogConfig  newLogConfig  )  [inline]
void alma::acs::logging::StdOutConsoleHandler::publish ( LogRecord  record  )  [inline]

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

Referenced by configureLogging().


Member Data Documentation

Referenced by close(), and configureLogging().

Referenced by configureLogging().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2