This Handler publishes log records to System.err. More...
#include <src/main/decaf/util/logging/ConsoleHandler.h>

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. | |
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).
| decaf::util::logging::ConsoleHandler::ConsoleHandler | ( | ) |
| virtual decaf::util::logging::ConsoleHandler::~ConsoleHandler | ( | ) | [inline, virtual] |
| 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.
| 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.
| record | The LogRecord to Publish |
Reimplemented from decaf::util::logging::StreamHandler.
1.6.1