17#ifndef _DECAF_UTIL_LOGGING_HANDLER_H_
18#define _DECAF_UTIL_LOGGING_HANDLER_H_
69 Handler(
const Handler& );
70 Handler& operator= (
const Handler& );
110 this->filter = filter;
156 return this->formatter;
174 return this->errorManager;
Interface for a class that implements the close method.
Definition Closeable.h:30
Definition Exception.h:38
ErrorManager objects can be attached to Handlers to process any error that occur on a Handler during ...
Definition ErrorManager.h:42
A Filter can be used to provide fine grain control over what is logged, beyond the control provided b...
Definition Filter.h:35
virtual Filter * getFilter()
Gets the Filter that this Handler uses to filter Log Records.
Definition Handler.h:117
virtual void setLevel(const Level &value)
Set the log level specifying which message levels will be logged by this Handler.
Definition Handler.h:129
virtual bool isLoggable(const LogRecord &record) const
Check if this Handler would actually log a given LogRecord.
void reportError(const std::string &message, decaf::lang::Exception *ex, int code)
Protected convenience method to report an error to this Handler's ErrorManager.
virtual void setFormatter(Formatter *formatter)
Sets the Formatter used by this Handler.
virtual void flush()=0
Flush the Handler's output, clears any buffers.
virtual Level getLevel()
Get the log level specifying which message levels will be logged by this Handler.
Definition Handler.h:138
virtual ErrorManager * getErrorManager()
Gets the ErrorManager used by this Handler.
Definition Handler.h:173
virtual void setErrorManager(ErrorManager *errorManager)
Sets the Formatter used by this Handler.
virtual Formatter * getFormatter()
Gets the Formatter used by this Handler.
Definition Handler.h:155
virtual void setFilter(Filter *filter)
Sets the Filter that this Handler uses to filter Log Records.
Definition Handler.h:109
virtual void publish(const LogRecord &record)=0
Publish the Log Record to this Handler.
The Level class defines a set of standard logging levels that can be used to control logging output.
Definition Level.h:56
LogRecord objects are used to pass logging requests between the logging framework and individual log ...
Definition LogRecord.h:41
#define DECAF_API
Definition Config.h:29
Definition ConsoleHandler.h:28
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25