[AGENT++] LOGGING mechanism for AGENT++,snmp++
Ramasubramanian Venkataraman
venkiram_be at yahoo.co.in
Wed Jul 4 18:44:13 CEST 2007
Hi all,
Is there a way to redirect the AGENT++,SNMP++ log messages to a single file.
I have tried with the following piece of code in my application
DefaultLog::init(new AgentLogImpl(LOG_FILE_NAME));
DefaultLog::log()->set_filter(ERROR_LOG, 5);
DefaultLog::log()->set_filter(WARNING_LOG, 5);
DefaultLog::log()->set_filter(EVENT_LOG, 5);
DefaultLog::log()->set_filter(INFO_LOG, 5);
DefaultLog::log()->set_filter(DEBUG_LOG, 8);
I have compiled snmp++.agent++ libraries and my code with the -D_DEBUG option.
But still the file name alone created in the given path but there is nothing in it.
Can some one help me how to redirect the AGENT++,snmp++ logs into a single file.
Thanks,
Venkataraman
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
More information about the AGENTPP
mailing list