I´m trying to log but I can´t get it work.
#include <snmp_pp/log.h>
…
DefaultLog::log()->set_filter(ERROR_LOG, 15);
…
LOG_BEGIN(loggerModuleName, ERROR_LOG | 10);
LOG("TEST LOG");
LOG_END;
I tried to log to a file as well. Wothout success.
DefaultLog::init(new AgentLogImpl("logger.txt"));
Thank you very much