[AGENT++]why I can not log into file?
OELoo Jerry
oyljerry at hotmail.com
Thu Aug 5 10:35:16 CEST 2004
hi all
I have add the log into my program,here is a snapshoot:
AgentLogImpl* log = new AgentLogImpl( "snmplog.log" );
DefaultLog::init( log );
DefaultLog::log()->set_filter(ERROR_LOG, 2);
DefaultLog::log()->set_filter(WARNING_LOG, 4);
DefaultLog::log()->set_filter(EVENT_LOG, 4);
DefaultLog::log()->set_filter(INFO_LOG, 4);
DefaultLog::log()->set_filter(DEBUG_LOG, 9);
but when i run my program,i can find the snmplog.log in my file, but ,there
are nothing in it? so why?
Thanks for any help
_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn
More information about the AGENTPP
mailing list