18#ifndef LOG4CXX_DB_DB_APPENDER_H
19#define LOG4CXX_DB_DB_APPENDER_H
21#include <log4cxx/log4cxx.h>
144 void activateOptions(helpers::Pool& p) override;
149 void append(const spi::LoggingEventPtr& event, helpers::Pool&) override;
151 void close() override;
156 bool requiresLayout()
const override
176 struct DBAppenderPriv;
Implementation base class for all appenders.
Definition: appenderskeleton.h:41
The DBAppender lets you log messages to a database.
Definition: dbappender.h:114
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 (?)
LOG4CXX_PTR_DEF(DBAppender)
Definition: configuration.h:25
std::basic_string< logchar > LogString
Definition: logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:157
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:151
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:42
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:163
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:145