1 #ifndef PLOTSOCKETAPPENDER_H
2 #define PLOTSOCKETAPPENDER_H
6 #include <log4cxx/spi/loggingevent.h>
7 #include <log4cxx/appenderskeleton.h>
8 #include <log4cxx/net/socketappenderskeleton.h>
29 BEGIN_LOG4CXX_CAST_MAP()
31 LOG4CXX_CAST_ENTRY_CHAIN(AppenderSkeleton)
32 END_LOG4CXX_CAST_MAP()
35 PlotSocketAppender(helpers::InetAddressPtr& address,
int port);
36 PlotSocketAppender(const LogString& host,
int port);
38 ~PlotSocketAppender();
41 virtual
void setSocket(log4cxx::helpers::SocketPtr& socket, log4cxx::helpers::Pool& p);
43 virtual
void cleanUp(log4cxx::helpers::Pool& p);
45 virtual
int getDefaultDelay() const;
47 virtual
int getDefaultPort() const;
51 void append(const log4cxx::spi::LoggingEventPtr& event, log4cxx::helpers::Pool& p);
57 bool requiresLayout()
const {
return true; }
60 log4cxx::helpers::ObjectOutputStreamPtr oos;
66 #endif // MOVE3D_LOG_OFF
67 #endif // PLOTSOCKETAPPENDER_H
static int DEFAULT_RECONNECTION_DELAY
The default reconnection delay (30000 milliseconds or 30 seconds).
Definition: plotsocketappender.h:25
Definition: plotsocketappender.h:13
This file implements macros to help with the logging, in a way similar to ROS, using log4cxx...
static int DEFAULT_PORT
The default port number of remote logging server (4560).
Definition: plotsocketappender.h:20