decaf::util::logging::ConsoleHandler Class Reference

This Handler publishes log records to System.err. More...

#include <src/main/decaf/util/logging/ConsoleHandler.h>

Inheritance diagram for decaf::util::logging::ConsoleHandler:
Inheritance graph
[legend]

Public Member Functions

 ConsoleHandler ()
virtual ~ConsoleHandler ()
virtual void close ()
 Close the current output stream.
virtual void publish (const LogRecord &record)
 Publish the Log Record to this Handler.

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).

Since:
1.0

Constructor & Destructor Documentation

decaf::util::logging::ConsoleHandler::ConsoleHandler (  ) 
virtual decaf::util::logging::ConsoleHandler::~ConsoleHandler (  )  [inline, virtual]

Member Function Documentation

virtual void decaf::util::logging::ConsoleHandler::close (  )  [virtual]

Close the current output stream.

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

Exceptions:
IOException 

Reimplemented from decaf::util::logging::StreamHandler.

virtual void decaf::util::logging::ConsoleHandler::publish ( const LogRecord record  )  [virtual]

Publish the Log Record to this Handler.

Parameters:
record The LogRecord to Publish

Reimplemented from decaf::util::logging::StreamHandler.


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

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1