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,
162 void activateOptions(helpers::Pool& p) override;
174 helpers::Pool& p) const;
205 void close() override;
214 virtual
void flushBuffer(
log4cxx::helpers::Pool& p);
219 bool requiresLayout() const override;
238 void setBufferSize(
size_t newBufferSize);
246 size_t getBufferSize() const;
250 #if LOG4CXX_WCHAR_T_API || LOG4CXX_LOGCHAR_IS_WCHAR_T || defined(WIN32) || defined(_WIN32)
251 static void encode(
wchar_t** dest,
const LogString& src,
254 static void encode(
unsigned short** dest,
const LogString& src,
258 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)
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:31
Definition: appender.h:27
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