[AGENT++] user-defined log class for snmp++?

Leo Lei nsinit at 163.com
Wed Feb 7 01:56:02 CET 2007


Jochen Katz£º

	yeah, that's what i want. cause that i can't filter the log entries of the snmp++/agent++/agentX++ internals
 that i don't want them to be in the logfile by setting a filter for a specified log class.

	i means:
                AgentLog* pLog = new AgentLogImpl(NMS_AGENT_LOG);
                DefaultLog::init(pLog);

                DefaultLog::log()->set_filter(ERROR_LOG, 0);
                DefaultLog::log()->set_filter(WARNING_LOG, 0);
                DefaultLog::log()->set_filter(EVENT_LOG, 0);
                DefaultLog::log()->set_filter(INFO_LOG, 0);
                DefaultLog::log()->set_filter(DEBUG_LOG, 0);

				DefaultLog::log()->set_filter(USER_LOG, 15);	// i am only concerned with the application log entry.

	sorry for my poor english, thanks.
	
>just to be sure: are you asking for the following (and some additional)
>changes?
>
>// Log entry class
>...
>#define USER_LOG       0x60
>
>#define LOG_TYPES       6 // was 5
>

= = = = = = = = = = = = = = = = = = = =

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡	Leo Lei
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡	2007-02-07





More information about the AGENTPP mailing list