activemq::logger::ConsoleHandler Class Reference

#include <ConsoleHandler.h>

List of all members.

Public Member Functions

 ConsoleHandler (void)
virtual ~ConsoleHandler (void)
virtual void close (void) throw ( cms::CMSException )

Private Attributes

io::StandardErrorOutputStream stream
SimpleFormatter formatter


Detailed Description

This Handler publishes log records to System.err. By default the SimpleFormatter is used to generate brief summaries.

Configuration: By default each ConsoleHandler is initialized using the following LogManager configuration properties. If properties are not defined (or have invalid values) then the specified default values are used.

ConsoleHandler.level specifies the default level for the Handler (defaults to Level.INFO). ConsoleHandler.filter specifies the name of a Filter class to use (defaults to no Filter). ConsoleHandler.formatter specifies the name of a Formatter class to use (defaults to SimpleFormatter).


Constructor & Destructor Documentation

activemq::logger::ConsoleHandler::ConsoleHandler void   )  [inline]
 

virtual activemq::logger::ConsoleHandler::~ConsoleHandler void   )  [inline, virtual]
 


Member Function Documentation

virtual void activemq::logger::ConsoleHandler::close void   )  throw ( cms::CMSException ) [inline, virtual]
 

Close the current output stream.

Override the StreamHandler close to flush the Std Err stream but doesn't close.

Exceptions:
CMSException 


Member Data Documentation

SimpleFormatter activemq::logger::ConsoleHandler::formatter [private]
 

io::StandardErrorOutputStream activemq::logger::ConsoleHandler::stream [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Aug 3 18:03:33 2006 for activemq-cpp by  doxygen 1.4.5