18#ifndef _LOG4CXX_DB_ODBC_APPENDER_H
19#define _LOG4CXX_DB_ODBC_APPENDER_H
21#include <log4cxx/log4cxx.h>
37 void* hInput,
const char* prolog,
42 const char* formatMessage(
short fHandleType,
43 void* hInput,
const char* prolog,
177 void activateOptions(helpers::Pool& p) override;
182 void append(const spi::LoggingEventPtr& event, helpers::Pool&) override;
188 LogString getLogStatement(const spi::LoggingEventPtr& event,
189 helpers::Pool& p) const;
220 void close() override;
229 virtual
void flushBuffer(
log4cxx::helpers::Pool& p);
234 bool requiresLayout() const override;
253 void setBufferSize(
size_t newBufferSize);
261 size_t getBufferSize() const;
265#if LOG4CXX_WCHAR_T_API || LOG4CXX_LOGCHAR_IS_WCHAR_T || defined(WIN32) || defined(_WIN32)
266 static void encode(
wchar_t** dest,
const LogString& src,
269 static void encode(
unsigned short** dest,
const LogString& src,
273 struct ODBCAppenderPriv;
Implementation base class for all appenders.
Definition: appenderskeleton.h:41
The ODBCAppender sends log events to a database.
Definition: odbcappender.h:138
void * SQLHENV
Definition: odbcappender.h:147
void * SQLHDBC
Definition: odbcappender.h:146
void * SQLHANDLE
Definition: odbcappender.h:148
short SQLSMALLINT
Definition: odbcappender.h:149
Definition: odbcappender.h:34
SQLException(const char *msg)
SQLException(const SQLException &src)
SQLException(short fHandleType, void *hInput, const char *prolog, log4cxx::helpers::Pool &p)
The class Exception and its subclasses indicate conditions that a reasonable application might want t...
Definition: exception.h:38
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