#include <Handler.h>
Inheritance diagram for activemq::logger::Handler:
Public Member Functions | |
virtual | ~Handler (void) |
virtual void | flush (void)=0 |
virtual void | publish (const LogRecord &record)=0 |
virtual void | isLoggable (const LogRecord &record)=0 |
virtual void | setFilter (const Filter *filter)=0 |
virtual const Filter * | getFilter (void)=0 |
virtual void | setLevel (Level value)=0 |
virtual Level | getLevel (void)=0 |
virtual void | setFormatter (const Formatter *formatter)=0 |
virtual const Formatter * | getFormatter (void)=0 |
A Handler can be disabled by doing a setLevel(Level.OFF) and can be re-enabled by doing a setLevel with an appropriate level.
Handler classes typically use LogManager properties to set default values for the Handler's Filter, Formatter, and Level. See the specific documentation for each concrete Handler class.
|
|
|
Flush the Handler's output, clears any buffers. Implemented in activemq::logger::StreamHandler. |
|
Gets the Filter that this Handler uses to filter Log Records
Implemented in activemq::logger::StreamHandler. |
|
Gets the
Implemented in activemq::logger::StreamHandler. |
|
Get the log level specifying which message levels will be logged by this Handler.
Implemented in activemq::logger::StreamHandler. |
|
Check if this Handler would actually log a given LogRecord. This method checks if the LogRecord has an appropriate Level and whether it satisfies any Filter. It also may make other Handler specific checks that might prevent a handler from logging the LogRecord.
Implemented in activemq::logger::StreamHandler. |
|
Publish the Log Record to this Handler
Implemented in activemq::logger::StreamHandler. |
|
Sets the Filter that this Handler uses to filter Log Records For each call of publish the Handler will call this Filter (if it is non-null) to check if the LogRecord should be published or discarded.
Implemented in activemq::logger::StreamHandler. |
|
Sets the Some Handlers may not use Formatters, in which case the Formatter will be remembered, but not used.
Implemented in activemq::logger::StreamHandler. |
|
Set the log level specifying which message levels will be logged by this Handler. The intention is to allow developers to turn on voluminous logging, but to limit the messages that are sent to certain Handlers.
Implemented in activemq::logger::StreamHandler. |