18#ifndef LOG4CXX_DB_DB_APPENDER_H
19#define LOG4CXX_DB_DB_APPENDER_H
21#include <log4cxx/log4cxx.h>
176 struct DBAppenderPriv;
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
The DBAppender lets you log messages to a database.
Definition dbappender.h:114
void append(const spi::LoggingEventPtr &event, helpers::Pool &) override
Adds the event to the buffer.
const LogString & getSql() const
Returns pre-formated statement eg: insert into LogTable (msg) values (?)
void setSql(const LogString &s)
Set pre-formated statement eg: insert into LogTable (msg) values (?)
void setOption(const LogString &option, const LogString &value) override
Set option to value.
void close() override
Release any resources allocated within the appender such as file handles, network connections,...
void activateOptions(helpers::Pool &p) override
Activate the specified options.
bool requiresLayout() const override
DBAppender does not require a layout.
Definition dbappender.h:156
Definition dbappender.h:32
LOG4CXX_PTR_DEF(DBAppender)
Definition propertysetter.h:27
std::basic_string< logchar > LogString
Definition logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:158
#define END_LOG4CXX_CAST_MAP()
Definition object.h:152
#define DECLARE_LOG4CXX_OBJECT(object)
Definition object.h:43
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition object.h:164
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:146