 |
log4cplus
2.0.6
|
Go to the documentation of this file.
24 #ifndef LOG4CPLUS_APPENDER_HEADER_
25 #define LOG4CPLUS_APPENDER_HEADER_
29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
43 #include <condition_variable>
67 virtual void reset() = 0;
156 void destructorImpl();
165 virtual void close() = 0;
170 bool isClosed()
const;
208 virtual void setErrorHandler(std::unique_ptr<ErrorHandler> eh);
221 virtual void setLayout(std::unique_ptr<Layout> layout);
228 virtual Layout* getLayout();
248 void addFilter (std::function<
280 void waitToFinishAsyncLogging();
320 #if ! defined (LOG4CPLUS_SINGLE_THREADED)
330 #if ! defined (LOG4CPLUS_SINGLE_THREADED)
331 void subtract_in_flight();
340 #endif // LOG4CPLUS_APPENDER_HEADER_
bool useLockFile
Use lock file for inter-process synchronization of access to log file.
bool closed
Is this appender closed?
std::basic_string< tchar > tstring
bool async
Asynchronous append.
bool isAsSevereAsThreshold(LogLevel ll) const
Check whether the message LogLevel is below the appender's threshold.
std::atomic< std::size_t > in_flight
This class is used to "handle" errors encountered in an {}.
LogLevel getThreshold() const
Returns this appenders threshold LogLevel.
helpers::SharedObjectPtr< Appender > SharedAppenderPtr
This is a pointer to an Appender.
LogLevel threshold
There is no LogLevel threshold filtering by default.
std::mutex in_flight_mutex
std::unique_ptr< Layout > layout
The layout variable does not need to be set if the appender implementation has its own layout.
const LogLevel NOT_SET_LOG_LEVEL
This class is used to layout strings sent to an {}.
void setThreshold(LogLevel th)
Set the threshold LogLevel.
The internal representation of logging events.
std::unique_ptr< helpers::LockFile > lockFile
Optional system wide synchronization lock.
std::condition_variable in_flight_condition
std::unique_ptr< ErrorHandler > errorHandler
It is assumed and enforced that errorHandler is never null.
log4cplus::tstring name
Appenders are named.
Extend this class for implementing your own strategies for printing log statements.
log4cplus::spi::FilterPtr filter
The first filter in the filter chain.