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,
118 void activateOptions(helpers::Pool& p) override;
123 void append(const spi::LoggingEventPtr& event, helpers::Pool&) override;
134 LogString getLogStatement(const spi::LoggingEventPtr& event,
135 helpers::Pool& p) const;
170 void close() override;
179 virtual
void flushBuffer(
log4cxx::helpers::Pool& p);
184 bool requiresLayout()
const override
218#if LOG4CXX_WCHAR_T_API || LOG4CXX_LOGCHAR_IS_WCHAR_T || defined(WIN32) || defined(_WIN32)
219 static void encode(
wchar_t** dest,
const LogString& src,
222 static void encode(
unsigned short** dest,
const LogString& src,
226 struct ODBCAppenderPriv;
Implementation base class for all appenders.
Definition: appenderskeleton.h:41
Definition: odbcappender.h:94
void * SQLHENV
Definition: odbcappender.h:103
const LogString & getUser() const
void setBufferSize(size_t newBufferSize)
void setUser(const LogString &user)
const LogString & getSql() const
Returns pre-formated statement eg: insert into LogTable (msg) values ("%m")
void setPassword(const LogString &password)
const LogString & getPassword() const
void setURL(const LogString &url)
void * SQLHDBC
Definition: odbcappender.h:102
void * SQLHANDLE
Definition: odbcappender.h:104
void setSql(const LogString &s)
Set pre-formated statement eg: insert into LogTable (msg) values ("%m")
const LogString & getURL() const
short SQLSMALLINT
Definition: odbcappender.h:105
size_t getBufferSize() const
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(ODBCAppender)
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