How to create NTEventlogAppender.dll as required for logging event in the eventlog using log4cplus
问题 First, Let me thank for the log4cplus source code. I am facing one issue as follows: What I am trying to do? I want to log the messages to event log on windows. What did I do? I could get the event logging enabled by in including following .h #include <log4cplus/nteventlogappender.h> And creating the appender as follows: SharedAppenderPtr append_3(new NTEventLogAppender(LOG4CPLUS_TEXT("127.0.0.1"), LOG4CPLUS_TEXT("log"), LOG4CPLUS_TEXT("source"))); append_3->setName(LOG4CPLUS_TEXT("ToEventlog