24 #ifndef LOG4CPLUS_SYSLOG_APPENDER_HEADER_ 25 #define LOG4CPLUS_SYSLOG_APPENDER_HEADER_ 29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE) 82 #if ! defined (LOG4CPLUS_SINGLE_THREADED) 95 #if defined (LOG4CPLUS_HAVE_SYSLOG_H) 100 RemoteSyslogType remoteSyslogType = RSTUdp,
bool ipv6 =
false);
107 virtual void close();
110 virtual int getSysLogLevel(
const LogLevel& ll)
const;
112 #if defined (LOG4CPLUS_HAVE_SYSLOG_H) 136 void initConnector ();
139 #if ! defined (LOG4CPLUS_SINGLE_THREADED) 143 virtual void ctcSetConnected ();
153 std::string identStr;
160 #endif // LOG4CPLUS_SYSLOG_APPENDER_HEADER_ LOG4CPLUS_EXPORT SOCKET_TYPE openSocket(unsigned short port, bool udp, bool ipv6, SocketState &state)
The internal representation of logging events.
helpers::SharedObjectPtr< helpers::ConnectorThread > connector
helpers::Socket syslogSocket
RemoteSyslogType
Remote syslog IP protocol type.
This class implements client sockets (also called just "sockets").
RemoteSyslogType remoteSyslogType
std::basic_string< tchar > tstring
int LogLevel
Defines the minimum set of priorities recognized by the system, that is FATAL_LOG_LEVEL,...
AppendFuncType appendFunc
Appends log events to a file.
Interface implemented by users of ConnectorThread.
static tstring const remoteTimeFormat
Extend this class for implementing your own strategies for printing log statements.