[AGENT++] Logging Problem

Florian Butter florian.butter at googlemail.com
Wed Jul 16 15:33:34 CEST 2014


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


More information about the AGENTPP mailing list