2008/6/13 <[EMAIL PROTECTED]>:
> i tried using this as
>
> netsnmp_log_handler *logh;
> logh = netsnmp_register_loghandler(NETSNMP_LOGHANDLER_FILE, priority);
"priority" ?
What value does this have?
> but when i used API log file was created but logs for DEBUGMSG("Started")
> were found in the file
Isn't that what you wanted?
For messages to be logged in this file?
> then i also added
> debug_register_tokens("snmpV3Agent,currentAlarmTable");
> snmp_set_do_debugging(1);
>
> Then the logs start coming but they were also shown on stdout(console) which
> i don,t won't
Where in your subagent code did you add these lines?
It's almost impossible to comment on what might be happening,
given such an isolated fragment of code.
> so could it be possible that my subagent(Agentx) logs come in
> different file and master agent in different file
Yes - both Magnus and I have already told you that this
is possible.
But without a better description of what you are actually doing,
there's no way that we can help you find out what's going wrong.
Dave
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders