I need to get a win32 application to send logs to a syslog server. This application has been using log4cplus for years to write logs to a file. When I try to use the SysLogAppender class, the compiler gives me errors. Upon investigation, I noticed syslogappender.h, line 21:
#if defined(LOG4CPLUS_HAVE_SYSLOG_H) && !defined(_WIN32)
Well, I assume that since our application is a win32 app, this class won't compile, because of the !defined(_WIN32). Does this mean log4cplus doesn't support syslog in win32 applications? If it does, then what am I doing wrong?
Log in to post a comment.